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:
@@ -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));
|
||||
}
|
||||
}
|
||||
+11
-12
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user