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 {
|
class AiScribeMobileUtils {
|
||||||
static bool isScribeInMobileMode(BuildContext? context) {
|
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,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
|
_buildHeader(context, localizations),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: SingleChildScrollView(
|
||||||
mainAxisSize: MainAxisSize.min,
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
_buildHeader(context, localizations),
|
children: [
|
||||||
_buildTextCard(context),
|
_buildTextCard(context),
|
||||||
if(hasContent)
|
if(hasContent)
|
||||||
Flexible(
|
ValueListenableBuilder<AiScribeCategoryContextMenuAction?>(
|
||||||
child: ValueListenableBuilder<AiScribeCategoryContextMenuAction?>(
|
|
||||||
valueListenable: _selectedCategory,
|
valueListenable: _selectedCategory,
|
||||||
builder: (context, selectedCategory, _) {
|
builder: (context, selectedCategory, _) {
|
||||||
return selectedCategory == null
|
return selectedCategory == null
|
||||||
@@ -221,9 +221,8 @@ class _AiScribeMobileActionsBottomSheetState
|
|||||||
: _buildSubmenuListView();
|
: _buildSubmenuListView();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
|
),
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
_buildBottomBar(context)
|
_buildBottomBar(context)
|
||||||
|
|||||||
Reference in New Issue
Block a user