fix back button not clsing imageviewer

This commit is contained in:
OfficialDakari 2025-12-04 10:09:22 +05:00
parent ff2901479a
commit 70ad699821
2 changed files with 14 additions and 12 deletions

View File

@ -42,6 +42,7 @@
android:theme="@style/LaunchTheme" android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true" android:hardwareAccelerated="true"
android:enableOnBackInvokedCallback="false"
android:showOnLockScreen="false" android:showOnLockScreen="false"
android:turnScreenOn="true" android:turnScreenOn="true"
android:windowSoftInputMode="adjustResize" android:windowSoftInputMode="adjustResize"

View File

@ -157,7 +157,9 @@ class ImageBubble extends StatelessWidget {
), ),
), ),
), ),
if (fileDescription != null && textColor != null && event.isRichFileDescription) if (fileDescription != null &&
textColor != null &&
event.isRichFileDescription)
SizedBox( SizedBox(
width: width, width: width,
child: Padding( child: Padding(
@ -166,20 +168,19 @@ class ImageBubble extends StatelessWidget {
vertical: 8, vertical: 8,
), ),
child: HtmlMessage( child: HtmlMessage(
html: fileDescription, html: fileDescription,
textColor: textColor, textColor: textColor,
room: event.room, room: event.room,
fontSize: AppConfig.fontSizeFactor * AppConfig.messageFontSize,
linkStyle: TextStyle(
color: linkColor,
fontSize: fontSize:
AppConfig.fontSizeFactor * AppConfig.messageFontSize, AppConfig.fontSizeFactor * AppConfig.messageFontSize,
linkStyle: TextStyle( decoration: TextDecoration.underline,
color: linkColor, decorationColor: linkColor,
fontSize:
AppConfig.fontSizeFactor * AppConfig.messageFontSize,
decoration: TextDecoration.underline,
decorationColor: linkColor,
),
onOpen: (url) => UrlLauncher(context, url.url).launchUrl(),
), ),
onOpen: (url) => UrlLauncher(context, url.url).launchUrl(),
),
), ),
), ),
], ],