fluffychat merge
This commit is contained in:
commit
afa1c8f70b
4 changed files with 7 additions and 8 deletions
|
|
@ -45,10 +45,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 =>
|
||||
[
|
||||
|
|
|
|||
|
|
@ -1475,7 +1475,7 @@ packages:
|
|||
path: "/Users/ggurdin/pangea/matrix-dart-sdk"
|
||||
relative: false
|
||||
source: path
|
||||
version: "4.0.1"
|
||||
version: "5.0.0"
|
||||
meta:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ dependencies:
|
|||
latlong2: ^0.9.1
|
||||
linkify: ^5.0.0
|
||||
# #Pangea
|
||||
# matrix: matrix: ^4.1.0
|
||||
# matrix: ^5.0.0
|
||||
matrix:
|
||||
path: /Users/ggurdin/pangea/matrix-dart-sdk
|
||||
# Pangea#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue