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(
@ -169,8 +171,7 @@ class ImageBubble extends StatelessWidget {
html: fileDescription, html: fileDescription,
textColor: textColor, textColor: textColor,
room: event.room, room: event.room,
fontSize: fontSize: AppConfig.fontSizeFactor * AppConfig.messageFontSize,
AppConfig.fontSizeFactor * AppConfig.messageFontSize,
linkStyle: TextStyle( linkStyle: TextStyle(
color: linkColor, color: linkColor,
fontSize: fontSize: