From 256243e2735f79ff4d5b19dca595a2cb6cac2871 Mon Sep 17 00:00:00 2001 From: Aman Raj Singh Mourya Date: Fri, 23 May 2025 12:30:27 +0530 Subject: [PATCH] Enable drag functionality in collection action sheet --- mobile/lib/ui/collections/collection_action_sheet.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/lib/ui/collections/collection_action_sheet.dart b/mobile/lib/ui/collections/collection_action_sheet.dart index 854f72f50a..a8131d6e66 100644 --- a/mobile/lib/ui/collections/collection_action_sheet.dart +++ b/mobile/lib/ui/collections/collection_action_sheet.dart @@ -96,7 +96,7 @@ void showCollectionActionSheet( topControl: const SizedBox.shrink(), backgroundColor: getEnteColorScheme(context).backgroundElevated, barrierColor: backdropFaintDark, - enableDrag: false, + enableDrag: true, ); } @@ -141,7 +141,7 @@ class _CollectionActionSheetState extends State { final filesCount = widget.sharedFiles != null ? widget.sharedFiles!.length : widget.selectedFiles?.files.length ?? 0; - final bottomInset = MediaQuery.of(context).viewInsets.bottom; + final bottomInset = MediaQuery.viewInsetsOf(context).bottom; final isKeyboardUp = bottomInset > 100; final double bottomPadding = max( 0, @@ -309,6 +309,7 @@ class _CollectionActionSheetState extends State { : collections; return Scrollbar( thumbVisibility: true, + interactive: true, radius: const Radius.circular(2), child: Padding( padding: const EdgeInsets.only(right: 12),