diff --git a/app/lib/widget/collection_browser.dart b/app/lib/widget/collection_browser.dart index 5599750b..1b26d3a5 100644 --- a/app/lib/widget/collection_browser.dart +++ b/app/lib/widget/collection_browser.dart @@ -42,7 +42,6 @@ import 'package:nc_photos/or_null.dart'; import 'package:nc_photos/session_storage.dart'; import 'package:nc_photos/snack_bar_manager.dart'; import 'package:nc_photos/use_case/archive_file.dart'; -import 'package:nc_photos/use_case/collection/import_pending_shared_collection.dart'; import 'package:nc_photos/use_case/inflate_file_descriptor.dart'; import 'package:nc_photos/use_case/remove.dart'; import 'package:nc_photos/widget/album_share_outlier_browser.dart'; @@ -51,7 +50,7 @@ import 'package:nc_photos/widget/collection_picker.dart'; import 'package:nc_photos/widget/draggable_item_list.dart'; import 'package:nc_photos/widget/export_collection_dialog.dart'; import 'package:nc_photos/widget/fancy_option_picker.dart'; -import 'package:nc_photos/widget/file_sharer.dart'; +import 'package:nc_photos/widget/file_sharer_dialog.dart'; import 'package:nc_photos/widget/network_thumbnail.dart'; import 'package:nc_photos/widget/page_visibility_mixin.dart'; import 'package:nc_photos/widget/photo_list_item.dart'; diff --git a/app/lib/widget/collection_browser/app_bar.dart b/app/lib/widget/collection_browser/app_bar.dart index bba5d0fc..d3f29098 100644 --- a/app/lib/widget/collection_browser/app_bar.dart +++ b/app/lib/widget/collection_browser/app_bar.dart @@ -295,7 +295,7 @@ class _SelectionAppBar extends StatelessWidget { } final result = await showDialog( context: context, - builder: (context) => FileSharer( + builder: (context) => FileSharerDialog( account: bloc.account, files: selected, ), diff --git a/app/lib/widget/file_sharer.dart b/app/lib/widget/file_sharer_dialog.dart similarity index 96% rename from app/lib/widget/file_sharer.dart rename to app/lib/widget/file_sharer_dialog.dart index dd5e495d..26402d53 100644 --- a/app/lib/widget/file_sharer.dart +++ b/app/lib/widget/file_sharer_dialog.dart @@ -37,10 +37,10 @@ import 'package:np_codegen/np_codegen.dart'; import 'package:to_string/to_string.dart'; import 'package:tuple/tuple.dart'; -part 'file_sharer.g.dart'; -part 'file_sharer/bloc.dart'; -part 'file_sharer/state_event.dart'; -part 'file_sharer/type.dart'; +part 'file_sharer_dialog.g.dart'; +part 'file_sharer_dialog/bloc.dart'; +part 'file_sharer_dialog/state_event.dart'; +part 'file_sharer_dialog/type.dart'; typedef _BlocBuilder = BlocBuilder<_Bloc, _State>; @@ -48,8 +48,8 @@ typedef _BlocBuilder = BlocBuilder<_Bloc, _State>; /// /// Return true if the files are actually shared, false if user cancelled or /// some errors occurred (e.g., missing permission) -class FileSharer extends StatelessWidget { - const FileSharer({ +class FileSharerDialog extends StatelessWidget { + const FileSharerDialog({ super.key, required this.account, required this.files, @@ -63,7 +63,7 @@ class FileSharer extends StatelessWidget { account: account, files: files, ), - child: const _WrappedFileSharer(), + child: const _WrappedFileSharerDialog(), ); } @@ -71,8 +71,8 @@ class FileSharer extends StatelessWidget { final List files; } -class _WrappedFileSharer extends StatelessWidget { - const _WrappedFileSharer(); +class _WrappedFileSharerDialog extends StatelessWidget { + const _WrappedFileSharerDialog(); @override Widget build(BuildContext context) { diff --git a/app/lib/widget/file_sharer.g.dart b/app/lib/widget/file_sharer_dialog.g.dart similarity index 98% rename from app/lib/widget/file_sharer.g.dart rename to app/lib/widget/file_sharer_dialog.g.dart index fcba4050..b7b7ee94 100644 --- a/app/lib/widget/file_sharer.g.dart +++ b/app/lib/widget/file_sharer_dialog.g.dart @@ -1,6 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'file_sharer.dart'; +part of 'file_sharer_dialog.dart'; // ************************************************************************** // CopyWithLintRuleGenerator @@ -141,7 +141,7 @@ extension _$_BlocNpLog on _Bloc { // ignore: unused_element Logger get _log => log; - static final log = Logger("widget.file_sharer._Bloc"); + static final log = Logger("widget.file_sharer_dialog._Bloc"); } // ************************************************************************** diff --git a/app/lib/widget/file_sharer/bloc.dart b/app/lib/widget/file_sharer_dialog/bloc.dart similarity index 99% rename from app/lib/widget/file_sharer/bloc.dart rename to app/lib/widget/file_sharer_dialog/bloc.dart index 51f0194c..2fb07d24 100644 --- a/app/lib/widget/file_sharer/bloc.dart +++ b/app/lib/widget/file_sharer_dialog/bloc.dart @@ -1,4 +1,4 @@ -part of '../file_sharer.dart'; +part of '../file_sharer_dialog.dart'; @npLog class _Bloc extends Bloc<_Event, _State> implements BlocTag { diff --git a/app/lib/widget/file_sharer/state_event.dart b/app/lib/widget/file_sharer_dialog/state_event.dart similarity index 98% rename from app/lib/widget/file_sharer/state_event.dart rename to app/lib/widget/file_sharer_dialog/state_event.dart index ef2e399d..c7c8258a 100644 --- a/app/lib/widget/file_sharer/state_event.dart +++ b/app/lib/widget/file_sharer_dialog/state_event.dart @@ -1,4 +1,4 @@ -part of '../file_sharer.dart'; +part of '../file_sharer_dialog.dart'; @genCopyWith @toString diff --git a/app/lib/widget/file_sharer/type.dart b/app/lib/widget/file_sharer_dialog/type.dart similarity index 65% rename from app/lib/widget/file_sharer/type.dart rename to app/lib/widget/file_sharer_dialog/type.dart index f0d14d44..88229b07 100644 --- a/app/lib/widget/file_sharer/type.dart +++ b/app/lib/widget/file_sharer_dialog/type.dart @@ -1,4 +1,4 @@ -part of '../file_sharer.dart'; +part of '../file_sharer_dialog.dart'; enum ShareMethod { file,