Rename dialog properly as dialog

This commit is contained in:
Ming Ming 2023-05-21 19:49:56 +08:00
parent c6a48d2c02
commit d984f97e1e
7 changed files with 16 additions and 17 deletions

View file

@ -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';

View file

@ -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,
),

View file

@ -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<FileDescriptor> files;
}
class _WrappedFileSharer extends StatelessWidget {
const _WrappedFileSharer();
class _WrappedFileSharerDialog extends StatelessWidget {
const _WrappedFileSharerDialog();
@override
Widget build(BuildContext context) {

View file

@ -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");
}
// **************************************************************************

View file

@ -1,4 +1,4 @@
part of '../file_sharer.dart';
part of '../file_sharer_dialog.dart';
@npLog
class _Bloc extends Bloc<_Event, _State> implements BlocTag {

View file

@ -1,4 +1,4 @@
part of '../file_sharer.dart';
part of '../file_sharer_dialog.dart';
@genCopyWith
@toString

View file

@ -1,4 +1,4 @@
part of '../file_sharer.dart';
part of '../file_sharer_dialog.dart';
enum ShareMethod {
file,