Removed library prefix

This commit is contained in:
ashilkn 2023-01-25 10:27:40 +05:30
parent 48301e14e8
commit ae0e0a8d44
6 changed files with 21 additions and 29 deletions

View file

@ -28,8 +28,7 @@ import 'package:photos/theme/colors.dart';
import 'package:photos/theme/ente_theme.dart'; import 'package:photos/theme/ente_theme.dart';
import 'package:photos/ui/collections_gallery_widget.dart'; import 'package:photos/ui/collections_gallery_widget.dart';
import 'package:photos/ui/common/bottom_shadow.dart'; import 'package:photos/ui/common/bottom_shadow.dart';
import 'package:photos/ui/create_collection_sheet.dart' import 'package:photos/ui/create_collection_sheet.dart';
as create_collection_sheet;
import 'package:photos/ui/extents_page_view.dart'; import 'package:photos/ui/extents_page_view.dart';
import 'package:photos/ui/home/grant_permissions_widget.dart'; import 'package:photos/ui/home/grant_permissions_widget.dart';
import 'package:photos/ui/home/header_widget.dart'; import 'package:photos/ui/home/header_widget.dart';
@ -329,11 +328,11 @@ class _HomeWidgetState extends State<HomeWidget> {
_shouldRenderCreateCollectionSheet = false; _shouldRenderCreateCollectionSheet = false;
ReceiveSharingIntent.reset(); ReceiveSharingIntent.reset();
Future.delayed(const Duration(milliseconds: 10), () { Future.delayed(const Duration(milliseconds: 10), () {
create_collection_sheet.createCollectionSheet( createCollectionSheet(
null, null,
_sharedFiles, _sharedFiles,
context, context,
actionType: create_collection_sheet.CollectionActionType.addFiles, actionType: CollectionActionType.addFiles,
); );
}); });
} }

View file

@ -18,8 +18,7 @@ import 'package:photos/ui/components/blur_menu_item_widget.dart';
import 'package:photos/ui/components/bottom_action_bar/expanded_menu_widget.dart'; import 'package:photos/ui/components/bottom_action_bar/expanded_menu_widget.dart';
import 'package:photos/ui/components/button_widget.dart'; import 'package:photos/ui/components/button_widget.dart';
import 'package:photos/ui/components/models/button_type.dart'; import 'package:photos/ui/components/models/button_type.dart';
import 'package:photos/ui/create_collection_sheet.dart' import 'package:photos/ui/create_collection_sheet.dart';
as create_collection_sheet;
import 'package:photos/ui/sharing/manage_links_widget.dart'; import 'package:photos/ui/sharing/manage_links_widget.dart';
import 'package:photos/utils/delete_file_util.dart'; import 'package:photos/utils/delete_file_util.dart';
import 'package:photos/utils/magic_util.dart'; import 'package:photos/utils/magic_util.dart';
@ -254,11 +253,11 @@ class _FileSelectionActionWidgetState extends State<FileSelectionActionWidget> {
widget.selectedFiles widget.selectedFiles
.unSelectAll(split.ownedByOtherUsers.toSet(), skipNotify: true); .unSelectAll(split.ownedByOtherUsers.toSet(), skipNotify: true);
} }
create_collection_sheet.createCollectionSheet( createCollectionSheet(
widget.selectedFiles, widget.selectedFiles,
null, null,
context, context,
actionType: create_collection_sheet.CollectionActionType.moveFiles, actionType: CollectionActionType.moveFiles,
); );
} }
@ -267,7 +266,7 @@ class _FileSelectionActionWidgetState extends State<FileSelectionActionWidget> {
widget.selectedFiles widget.selectedFiles
.unSelectAll(split.ownedByOtherUsers.toSet(), skipNotify: true); .unSelectAll(split.ownedByOtherUsers.toSet(), skipNotify: true);
} }
create_collection_sheet.createCollectionSheet( createCollectionSheet(
widget.selectedFiles, widget.selectedFiles,
null, null,
context, context,
@ -347,11 +346,11 @@ class _FileSelectionActionWidgetState extends State<FileSelectionActionWidget> {
widget.selectedFiles widget.selectedFiles
.unSelectAll(split.ownedByOtherUsers.toSet(), skipNotify: true); .unSelectAll(split.ownedByOtherUsers.toSet(), skipNotify: true);
} }
create_collection_sheet.createCollectionSheet( createCollectionSheet(
widget.selectedFiles, widget.selectedFiles,
null, null,
context, context,
actionType: create_collection_sheet.CollectionActionType.unHide, actionType: CollectionActionType.unHide,
); );
} }

View file

@ -7,8 +7,7 @@ import 'package:photos/models/selected_files.dart';
import 'package:photos/theme/ente_theme.dart'; import 'package:photos/theme/ente_theme.dart';
import 'package:photos/ui/components/bottom_action_bar/bottom_action_bar_widget.dart'; import 'package:photos/ui/components/bottom_action_bar/bottom_action_bar_widget.dart';
import 'package:photos/ui/components/icon_button_widget.dart'; import 'package:photos/ui/components/icon_button_widget.dart';
import 'package:photos/ui/create_collection_sheet.dart' import 'package:photos/ui/create_collection_sheet.dart';
as create_collection_sheet;
import 'package:photos/ui/viewer/actions/file_selection_actions_widget.dart'; import 'package:photos/ui/viewer/actions/file_selection_actions_widget.dart';
import 'package:photos/utils/delete_file_util.dart'; import 'package:photos/utils/delete_file_util.dart';
import 'package:photos/utils/magic_util.dart'; import 'package:photos/utils/magic_util.dart';
@ -86,11 +85,11 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
iconButtonType: IconButtonType.primary, iconButtonType: IconButtonType.primary,
iconColor: iconColor, iconColor: iconColor,
onTap: () { onTap: () {
create_collection_sheet.createCollectionSheet( createCollectionSheet(
widget.selectedFiles, widget.selectedFiles,
null, null,
context, context,
actionType: create_collection_sheet.CollectionActionType.unHide, actionType: CollectionActionType.unHide,
); );
}, },
), ),

View file

@ -25,8 +25,7 @@ import 'package:photos/ui/common/progress_dialog.dart';
import 'package:photos/ui/components/action_sheet_widget.dart'; import 'package:photos/ui/components/action_sheet_widget.dart';
import 'package:photos/ui/components/button_widget.dart'; import 'package:photos/ui/components/button_widget.dart';
import 'package:photos/ui/components/models/button_type.dart'; import 'package:photos/ui/components/models/button_type.dart';
import 'package:photos/ui/create_collection_sheet.dart' import 'package:photos/ui/create_collection_sheet.dart';
as create_collection_sheet;
import 'package:photos/ui/viewer/file/custom_app_bar.dart'; import 'package:photos/ui/viewer/file/custom_app_bar.dart';
import 'package:photos/utils/delete_file_util.dart'; import 'package:photos/utils/delete_file_util.dart';
import 'package:photos/utils/dialog_util.dart'; import 'package:photos/utils/dialog_util.dart';
@ -273,11 +272,11 @@ class FadingAppBarState extends State<FadingAppBar> {
final s = SelectedFiles(); final s = SelectedFiles();
s.files.add(widget.file); s.files.add(widget.file);
Navigator.pop(context); Navigator.pop(context);
create_collection_sheet.createCollectionSheet( createCollectionSheet(
s, s,
null, null,
context, context,
actionType: create_collection_sheet.CollectionActionType.unHide, actionType: CollectionActionType.unHide,
); );
} }

View file

@ -12,8 +12,7 @@ import 'package:photos/models/trash_file.dart';
import 'package:photos/services/collections_service.dart'; import 'package:photos/services/collections_service.dart';
import 'package:photos/theme/colors.dart'; import 'package:photos/theme/colors.dart';
import 'package:photos/theme/ente_theme.dart'; import 'package:photos/theme/ente_theme.dart';
import 'package:photos/ui/create_collection_sheet.dart' import 'package:photos/ui/create_collection_sheet.dart';
as create_collection_sheet;
import 'package:photos/ui/viewer/file/file_info_widget.dart'; import 'package:photos/ui/viewer/file/file_info_widget.dart';
import 'package:photos/utils/delete_file_util.dart'; import 'package:photos/utils/delete_file_util.dart';
import 'package:photos/utils/magic_util.dart'; import 'package:photos/utils/magic_util.dart';
@ -239,12 +238,11 @@ class FadingBottomBarState extends State<FadingBottomBar> {
final selectedFiles = SelectedFiles(); final selectedFiles = SelectedFiles();
selectedFiles.toggleSelection(widget.file); selectedFiles.toggleSelection(widget.file);
Navigator.pop(context); Navigator.pop(context);
create_collection_sheet.createCollectionSheet( createCollectionSheet(
selectedFiles, selectedFiles,
null, null,
context, context,
actionType: actionType: CollectionActionType.restoreFiles,
create_collection_sheet.CollectionActionType.restoreFiles,
); );
}, },
), ),

View file

@ -15,8 +15,7 @@ import 'package:photos/models/magic_metadata.dart';
import 'package:photos/models/selected_files.dart'; import 'package:photos/models/selected_files.dart';
import 'package:photos/services/collections_service.dart'; import 'package:photos/services/collections_service.dart';
import 'package:photos/services/hidden_service.dart'; import 'package:photos/services/hidden_service.dart';
import 'package:photos/ui/create_collection_sheet.dart' import 'package:photos/ui/create_collection_sheet.dart';
as create_collection_sheet;
import 'package:photos/utils/delete_file_util.dart'; import 'package:photos/utils/delete_file_util.dart';
import 'package:photos/utils/dialog_util.dart'; import 'package:photos/utils/dialog_util.dart';
import 'package:photos/utils/magic_util.dart'; import 'package:photos/utils/magic_util.dart';
@ -413,12 +412,11 @@ class _OverlayWidgetState extends State<OverlayWidget> {
Icons.restore, Icons.restore,
), ),
onPressed: () { onPressed: () {
create_collection_sheet.createCollectionSheet( createCollectionSheet(
widget.selectedFiles, widget.selectedFiles,
null, null,
context, context,
actionType: actionType: CollectionActionType.restoreFiles,
create_collection_sheet.CollectionActionType.restoreFiles,
); );
}, },
), ),