|
|
|
@ -66,7 +66,9 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
|
|
|
|
|
(FilesSortProperty.isFolder, SortBoxOrder.ascending), |
|
|
|
|
}, |
|
|
|
|
input: files.data, |
|
|
|
|
builder: (final context, final sorted) => NeonListView<Widget>( |
|
|
|
|
builder: (final context, final sorted) => ValueListenableBuilder( |
|
|
|
|
valueListenable: widget.bloc.options.showHiddenFilesOption, |
|
|
|
|
builder: (final context, final showHiddenFiles, final _) => NeonListView<Widget>( |
|
|
|
|
scrollKey: 'files-${pathSnapshot.requireData.join('/')}', |
|
|
|
|
withFloatingActionButton: true, |
|
|
|
|
items: [ |
|
|
|
@ -84,7 +86,8 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
|
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
for (final file in sorted) ...[ |
|
|
|
|
if (widget.mode != FilesBrowserMode.selectDirectory || file.isDirectory) ...[ |
|
|
|
|
if ((widget.mode != FilesBrowserMode.selectDirectory || file.isDirectory) && |
|
|
|
|
(!file.isHidden || showHiddenFiles)) ...[ |
|
|
|
|
Builder( |
|
|
|
|
builder: (final context) { |
|
|
|
|
final matchingTask = tasksSnapshot.requireData |
|
|
|
@ -177,6 +180,7 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
bool _pathMatchesFile(final List<String> path, final String name) => const ListEquality().equals( |
|
|
|
|