fix: Content banner
This commit is contained in:
parent
7fe0508583
commit
20eada7019
1 changed files with 21 additions and 14 deletions
|
|
@ -42,20 +42,27 @@ 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) {
|
tag: heroTag,
|
||||||
return Hero(
|
child: mxContent == null
|
||||||
tag: heroTag,
|
? Center(
|
||||||
child: MxcImage(
|
child: Icon(
|
||||||
key: Key(mxContent?.toString() ?? 'NoKey'),
|
defaultIcon,
|
||||||
uri: mxContent,
|
color: Theme.of(context)
|
||||||
animated: true,
|
.colorScheme
|
||||||
fit: BoxFit.cover,
|
.onSecondaryContainer,
|
||||||
height: 400,
|
size: 128,
|
||||||
width: 800,
|
),
|
||||||
),
|
)
|
||||||
);
|
: MxcImage(
|
||||||
}),
|
key: Key(mxContent?.toString() ?? 'NoKey'),
|
||||||
|
uri: mxContent,
|
||||||
|
animated: true,
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
height: 400,
|
||||||
|
width: 800,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (onEdit != null)
|
if (onEdit != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue