mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 14:30:40 +01:00
fix: Content banner
This commit is contained in:
parent
338331d6e1
commit
d2f472e86c
@ -42,11 +42,19 @@ class ContentBanner extends StatelessWidget {
|
|||||||
bottom: 0,
|
bottom: 0,
|
||||||
child: Opacity(
|
child: Opacity(
|
||||||
opacity: opacity,
|
opacity: opacity,
|
||||||
child: LayoutBuilder(
|
child: Hero(
|
||||||
builder: (BuildContext context, BoxConstraints constraints) {
|
|
||||||
return Hero(
|
|
||||||
tag: heroTag,
|
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'),
|
key: Key(mxContent?.toString() ?? 'NoKey'),
|
||||||
uri: mxContent,
|
uri: mxContent,
|
||||||
animated: true,
|
animated: true,
|
||||||
@ -54,8 +62,7 @@ class ContentBanner extends StatelessWidget {
|
|||||||
height: 400,
|
height: 400,
|
||||||
width: 800,
|
width: 800,
|
||||||
),
|
),
|
||||||
);
|
),
|
||||||
}),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (onEdit != null)
|
if (onEdit != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user