Fix Scribe mobile in landscape mode

- Decided to use mobile UI in mobile landscape
- Make mobile bottom sheet content scrollable except header and bottombar: bottom sheet will render correctly even if keyboard is opened and there is not a lot of space. It will be less usable than in portrait but all actions available.
This commit is contained in:
Théo Poizat
2026-03-02 18:02:55 +01:00
committed by Dat H. Pham
parent 0c2fa84f93
commit d0cc14beb4
2 changed files with 12 additions and 13 deletions
@@ -4,6 +4,6 @@ import 'package:get/get.dart';
class AiScribeMobileUtils {
static bool isScribeInMobileMode(BuildContext? context) {
return context != null && Get.find<ResponsiveUtils>().isMobile(context);
return context != null && (Get.find<ResponsiveUtils>().isMobile(context) || Get.find<ResponsiveUtils>().isLandscapeMobile(context));
}
}
@@ -204,16 +204,16 @@ class _AiScribeMobileActionsBottomSheetState
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
_buildHeader(context, localizations),
Expanded(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
_buildHeader(context, localizations),
_buildTextCard(context),
if(hasContent)
Flexible(
child: ValueListenableBuilder<AiScribeCategoryContextMenuAction?>(
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
_buildTextCard(context),
if(hasContent)
ValueListenableBuilder<AiScribeCategoryContextMenuAction?>(
valueListenable: _selectedCategory,
builder: (context, selectedCategory, _) {
return selectedCategory == null
@@ -221,9 +221,8 @@ class _AiScribeMobileActionsBottomSheetState
: _buildSubmenuListView();
},
),
),
],
],
),
),
),
_buildBottomBar(context)