From 540ff683d82f5f070ea8cebce96a525e24b24048 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Sun, 4 Oct 2020 19:19:35 +0200 Subject: [PATCH] fix: small desktop fixes --- lib/components/matrix.dart | 3 ++- pubspec.lock | 2 +- pubspec.yaml | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/components/matrix.dart b/lib/components/matrix.dart index 01e46ada..8c0cf952 100644 --- a/lib/components/matrix.dart +++ b/lib/components/matrix.dart @@ -21,6 +21,7 @@ import '../utils/beautify_string_extension.dart'; import '../utils/famedlysdk_store.dart'; import '../utils/presence_extension.dart'; import '../views/key_verification.dart'; +import '../utils/platform_infos.dart'; import 'avatar.dart'; class Matrix extends StatefulWidget { @@ -212,7 +213,7 @@ class MatrixState extends State { final Set verificationMethods = { KeyVerificationMethod.numbers }; - if (!kIsWeb) { + if (PlatformInfos.isMobile) { // emojis don't show in web somehow verificationMethods.add(KeyVerificationMethod.emoji); } diff --git a/pubspec.lock b/pubspec.lock index eacd935e..e9511b57 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -327,7 +327,7 @@ packages: name: flutter_matrix_html url: "https://pub.dartlang.org" source: hosted - version: "0.1.5" + version: "0.1.7" flutter_olm: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 8ae84b46..411e6a46 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -50,7 +50,7 @@ dependencies: open_file: ^3.0.1 mime_type: ^0.3.0 bot_toast: ^3.0.0 - flutter_matrix_html: ^0.1.5 + flutter_matrix_html: ^0.1.7 moor: ^3.3.1 sqlite3_flutter_libs: ^0.2.0 sqlite3: ^0.1.4 @@ -87,7 +87,7 @@ flutter_icons: # The following section is specific to Flutter. flutter: - # Adds code generation (synthetic package) support + # Adds code generation (synthetic package) support generate: true