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