diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index f15a756..bdb39ca 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -42,6 +42,7 @@ android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" + android:enableOnBackInvokedCallback="false" android:showOnLockScreen="false" android:turnScreenOn="true" android:windowSoftInputMode="adjustResize" diff --git a/lib/pages/chat/events/image_bubble.dart b/lib/pages/chat/events/image_bubble.dart index 5a6828e..55eaaf3 100644 --- a/lib/pages/chat/events/image_bubble.dart +++ b/lib/pages/chat/events/image_bubble.dart @@ -157,7 +157,9 @@ class ImageBubble extends StatelessWidget { ), ), ), - if (fileDescription != null && textColor != null && event.isRichFileDescription) + if (fileDescription != null && + textColor != null && + event.isRichFileDescription) SizedBox( width: width, child: Padding( @@ -166,20 +168,19 @@ class ImageBubble extends StatelessWidget { vertical: 8, ), child: HtmlMessage( - html: fileDescription, - textColor: textColor, - room: event.room, + html: fileDescription, + textColor: textColor, + room: event.room, + fontSize: AppConfig.fontSizeFactor * AppConfig.messageFontSize, + linkStyle: TextStyle( + color: linkColor, fontSize: AppConfig.fontSizeFactor * AppConfig.messageFontSize, - linkStyle: TextStyle( - color: linkColor, - fontSize: - AppConfig.fontSizeFactor * AppConfig.messageFontSize, - decoration: TextDecoration.underline, - decorationColor: linkColor, - ), - onOpen: (url) => UrlLauncher(context, url.url).launchUrl(), + decoration: TextDecoration.underline, + decorationColor: linkColor, ), + onOpen: (url) => UrlLauncher(context, url.url).launchUrl(), + ), ), ), ],