Display Scribe mobile (bottomsheet) only when responsive mobile
Previosuly, we display Scribe mobile (bottomsheet) if platform was mobile, so also Android or iOS tablet. Now we choose to display Scribe mobile relatively to display screens instead of platform to display the desktop Scribe (context menu) for tablets.
This commit is contained in:
+1
-2
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:scribe/scribe/ai/presentation/widgets/overlay/ai_selection_overlay.dart';
|
||||
import 'package:tmail_ui_user/features/composer/presentation/composer_controller.dart';
|
||||
import 'package:tmail_ui_user/features/composer/presentation/extensions/ai_scribe/handle_ai_scribe_in_composer_extension.dart';
|
||||
@@ -34,7 +33,7 @@ class ComposerAiScribeSelectionOverlay extends StatelessWidget {
|
||||
controller.clearFocusRecipients();
|
||||
controller.clearFocusSubject();
|
||||
|
||||
if (PlatformInfo.isMobile) {
|
||||
if (controller.isScribeMobile) {
|
||||
await controller.saveAndUnfocusForModal();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user