Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix keyboard behaviour

AmanRajSinghMourya8b94ac822b52
diff --git a/mobile/apps/photos/lib/ui/actions/file/file_actions.dart b/mobile/apps/photos/lib/ui/actions/file/file_actions.dart
index d7398d4988..33587cee5e 100644
--- a/mobile/apps/photos/lib/ui/actions/file/file_actions.dart
+++ b/mobile/apps/photos/lib/ui/actions/file/file_actions.dart
@@ -162,7 +162,8 @@ class _DraggableDetailsSheetState extends State<_DraggableDetailsSheet> {
@override
Widget build(BuildContext context) {
- final disableSnap = _isExpanded;
+ final isKeyboardOpen = MediaQuery.of(context).viewInsets.bottom > 60;
+ final disableSnap = isKeyboardOpen || _isExpanded;
return DraggableScrollableSheet(
controller: _sheetController,
initialChildSize: disableSnap ? 0.95 : 0.75,