Merge pull request #2480 from krille-chan/dependabot/pub/matrix-5.0.0
build: (deps): bump matrix from 4.1.0 to 5.0.0
This commit is contained in:
commit
fa27ab2141
4 changed files with 8 additions and 9 deletions
|
|
@ -44,10 +44,9 @@ class ImageBubble extends StatelessWidget {
|
|||
});
|
||||
|
||||
Widget _buildPlaceholder(BuildContext context) {
|
||||
final String blurHashString =
|
||||
event.infoMap['xyz.amorgan.blurhash'] is String
|
||||
? event.infoMap['xyz.amorgan.blurhash']
|
||||
: 'LEHV6nWB2yk8pyo0adR*.7kCMdnj';
|
||||
final blurHashString =
|
||||
event.infoMap.tryGet<String>('xyz.amorgan.blurhash') ??
|
||||
'LEHV6nWB2yk8pyo0adR*.7kCMdnj';
|
||||
return SizedBox(
|
||||
width: width,
|
||||
height: height,
|
||||
|
|
|
|||
|
|
@ -41,11 +41,11 @@ extension LocalizedBody on Event {
|
|||
|
||||
bool get isAttachmentSmallEnough =>
|
||||
infoMap['size'] is int &&
|
||||
infoMap['size'] < room.client.database.maxFileSize;
|
||||
(infoMap['size'] as int) < room.client.database.maxFileSize;
|
||||
|
||||
bool get isThumbnailSmallEnough =>
|
||||
thumbnailInfoMap['size'] is int &&
|
||||
thumbnailInfoMap['size'] < room.client.database.maxFileSize;
|
||||
(thumbnailInfoMap['size'] as int) < room.client.database.maxFileSize;
|
||||
|
||||
bool get showThumbnail =>
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue