mirror of
https://github.com/krille-chan/fluffychat
synced 2024-10-05 16:32:51 +00:00
chore: Follow up imagebubble
This commit is contained in:
parent
ba05050c2b
commit
1271441eb0
1 changed files with 12 additions and 20 deletions
|
@ -15,8 +15,8 @@ class ImageBubble extends StatelessWidget {
|
|||
final Color? backgroundColor;
|
||||
final bool thumbnailOnly;
|
||||
final bool animated;
|
||||
final double? width;
|
||||
final double? height;
|
||||
final double width;
|
||||
final double height;
|
||||
final void Function()? onTap;
|
||||
final BorderRadius? borderRadius;
|
||||
|
||||
|
@ -45,8 +45,8 @@ class ImageBubble extends StatelessWidget {
|
|||
height: height,
|
||||
child: BlurHash(
|
||||
hash: blurHashString,
|
||||
decodingWidth: width?.round() ?? 64,
|
||||
decodingHeight: height?.round() ?? 64,
|
||||
decodingWidth: width.round(),
|
||||
decodingHeight: height.round(),
|
||||
imageFit: fit,
|
||||
),
|
||||
);
|
||||
|
@ -83,13 +83,6 @@ class ImageBubble extends StatelessWidget {
|
|||
borderRadius: borderRadius,
|
||||
child: Hero(
|
||||
tag: event.eventId,
|
||||
child: ConstrainedBox(
|
||||
constraints: maxSize
|
||||
? BoxConstraints(
|
||||
maxWidth: width ?? double.infinity,
|
||||
maxHeight: height ?? double.infinity,
|
||||
)
|
||||
: const BoxConstraints.expand(),
|
||||
child: MxcImage(
|
||||
event: event,
|
||||
width: width,
|
||||
|
@ -101,7 +94,6 @@ class ImageBubble extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue