fix: Stickers from gboard have black background
This commit is contained in:
parent
8ea9e26bac
commit
8da714b0d2
1 changed files with 5 additions and 3 deletions
|
|
@ -9,7 +9,6 @@ import 'package:pasteboard/pasteboard.dart';
|
||||||
import 'package:slugify/slugify.dart';
|
import 'package:slugify/slugify.dart';
|
||||||
|
|
||||||
import 'package:fluffychat/config/app_config.dart';
|
import 'package:fluffychat/config/app_config.dart';
|
||||||
import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_file_extension.dart';
|
|
||||||
import 'package:fluffychat/utils/platform_infos.dart';
|
import 'package:fluffychat/utils/platform_infos.dart';
|
||||||
import 'package:fluffychat/widgets/mxc_image.dart';
|
import 'package:fluffychat/widgets/mxc_image.dart';
|
||||||
import '../../widgets/avatar.dart';
|
import '../../widgets/avatar.dart';
|
||||||
|
|
@ -465,8 +464,11 @@ class InputBar extends StatelessWidget {
|
||||||
mimeType: content.mimeType,
|
mimeType: content.mimeType,
|
||||||
bytes: data,
|
bytes: data,
|
||||||
name: content.uri.split('/').last,
|
name: content.uri.split('/').last,
|
||||||
).detectFileType;
|
);
|
||||||
room.sendFileEvent(file, shrinkImageMaxDimension: 1600);
|
room.sendFileEvent(
|
||||||
|
file,
|
||||||
|
shrinkImageMaxDimension: 1600,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
minLines: minLines,
|
minLines: minLines,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue