Skip to content

armgit / ente

Public Imported from GitHub
0

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

Enable drag functionality in collection action sheet

Aman Raj Singh Mourya256243e2735f
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<CollectionActionSheet> {
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<CollectionActionSheet> {
: collections;
return Scrollbar(
thumbVisibility: true,
+ interactive: true,
radius: const Radius.circular(2),
child: Padding(
padding: const EdgeInsets.only(right: 12),