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: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"

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