π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove unused overflow actions from ItemListView and TrashPage
AmanRajSinghMourya18bca5f27109
diff --git a/mobile/apps/locker/lib/ui/components/item_list_view.dart b/mobile/apps/locker/lib/ui/components/item_list_view.dartindex 5539024cfd..246d1a5cea 100644--- a/mobile/apps/locker/lib/ui/components/item_list_view.dart+++ b/mobile/apps/locker/lib/ui/components/item_list_view.dart@@ -43,8 +43,6 @@ class ItemListView extends StatefulWidget {final List<EnteFile> files;final List<Collection> collections;final Widget? emptyStateWidget;- final List<OverflowMenuAction>? fileOverflowActions;- final List<OverflowMenuAction>? collectionOverflowActions;final SelectedCollections? selectedCollections;final SelectedFiles? selectedFiles;final ScrollPhysics? physics;@@ -56,8 +54,6 @@ class ItemListView extends StatefulWidget {this.files = const [],this.collections = const [],this.emptyStateWidget,- this.fileOverflowActions,- this.collectionOverflowActions,this.selectedCollections,this.selectedFiles,this.physics = const NeverScrollableScrollPhysics(),@@ -218,7 +214,6 @@ class _ItemListViewState extends State<ItemListView> {}) {return CollectionListWidget(collection: collection,- overflowActions: widget.collectionOverflowActions,isLastItem: isLastItem,selectedCollections: widget.selectedCollections,onTapCallback: onTap,@@ -234,7 +229,6 @@ class _ItemListViewState extends State<ItemListView> {}) {return FileListWidget(file: file,- overflowActions: widget.fileOverflowActions,isLastItem: isLastItem,selectedFiles: widget.selectedFiles,onTapCallback: onTap,diff --git a/mobile/apps/locker/lib/ui/pages/trash_page.dart b/mobile/apps/locker/lib/ui/pages/trash_page.dartindex f017c9f7b6..11e48b54f5 100644--- a/mobile/apps/locker/lib/ui/pages/trash_page.dart+++ b/mobile/apps/locker/lib/ui/pages/trash_page.dart@@ -6,7 +6,6 @@ import "package:ente_ui/theme/text_style.dart";import 'package:ente_ui/utils/dialog_util.dart';import 'package:ente_ui/utils/toast_util.dart';import 'package:flutter/material.dart';-import "package:hugeicons/hugeicons.dart";import 'package:locker/l10n/l10n.dart';import 'package:locker/services/collections/collections_service.dart';import 'package:locker/services/collections/models/collection.dart';@@ -42,37 +41,6 @@ class _TrashPageState extends State<TrashPage> {_sortedTrashFiles = List.from(widget.trashFiles);}- List<OverflowMenuAction> _getFileOverflowActions() {- final colorScheme = getEnteColorScheme(context);- return [- OverflowMenuAction(- id: 'restore',- label: context.l10n.restore,- icon: Icon(- Icons.restore,- color: colorScheme.textBase,- size: 20,- ),- onTap: (context, file, collection) {- _restoreFile(context, file!);- },- ),- OverflowMenuAction(- id: 'delete',- label: context.l10n.delete,- icon: HugeIcon(- icon: HugeIcons.strokeRoundedDelete01,- color: colorScheme.warning500,- size: 20,- ),- onTap: (context, file, collection) {- _deleteFilePermanently(context, file!);- },- isWarning: true,- ),- ];- }-void _restoreFile(BuildContext context, EnteFile file) async {final collections = await CollectionService.instance.getCollectionsForUI();@@ -268,7 +236,6 @@ class _TrashPageState extends State<TrashPage> {: Expanded(child: ItemListView(files: _sortedTrashFiles.cast<EnteFile>(),- fileOverflowActions: _getFileOverflowActions(),physics: const BouncingScrollPhysics(),),),