centered file leading icons in share folder picker
This commit is contained in:
@@ -14,6 +14,7 @@ import '../../../state/app/infrastructure/utility_widgets/bloc_module.dart';
|
||||
import '../../../state/app/modules/files/bloc/files_bloc.dart';
|
||||
import '../../../state/app/modules/files/bloc/files_state.dart';
|
||||
import '../../../state/app/modules/settings/bloc/settings_cubit.dart';
|
||||
import '../../../widget/centered_leading.dart';
|
||||
import '../../../widget/info_dialog.dart';
|
||||
import '../../../widget/placeholder_view.dart';
|
||||
import '../files/data/sort_options.dart';
|
||||
@@ -182,7 +183,7 @@ class _ShareFolderPickerViewState extends State<_ShareFolderPickerView> {
|
||||
final entry = entries[i];
|
||||
if (entry.isDirectory) {
|
||||
return ListTile(
|
||||
leading: FileLeading(file: entry),
|
||||
leading: CenteredLeading(FileLeading(file: entry)),
|
||||
title: Text(entry.name),
|
||||
trailing: const Icon(Icons.chevron_right),
|
||||
onTap: () => _enter(bloc, state.currentPath, entry.name),
|
||||
@@ -190,7 +191,7 @@ class _ShareFolderPickerViewState extends State<_ShareFolderPickerView> {
|
||||
}
|
||||
return ListTile(
|
||||
enabled: false,
|
||||
leading: FileLeading(file: entry),
|
||||
leading: CenteredLeading(FileLeading(file: entry)),
|
||||
title: Text(entry.name),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user