fix: Content banner

krille/remove-unused-translations
Krille Fear 3 years ago
parent 7fe0508583
commit 20eada7019

@ -42,11 +42,19 @@ class ContentBanner extends StatelessWidget {
bottom: 0,
child: Opacity(
opacity: opacity,
child: LayoutBuilder(
builder: (BuildContext context, BoxConstraints constraints) {
return Hero(
child: Hero(
tag: heroTag,
child: MxcImage(
child: mxContent == null
? Center(
child: Icon(
defaultIcon,
color: Theme.of(context)
.colorScheme
.onSecondaryContainer,
size: 128,
),
)
: MxcImage(
key: Key(mxContent?.toString() ?? 'NoKey'),
uri: mxContent,
animated: true,
@ -54,8 +62,7 @@ class ContentBanner extends StatelessWidget {
height: 400,
width: 800,
),
);
}),
),
),
),
if (onEdit != null)

Loading…
Cancel
Save