Browse Source

fix(neon_files): FileListTile don't show actions in selectDirectory mode

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/984/head
Nikolas Rimikis 1 year ago
parent
commit
58486708bd
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 1
      packages/neon/neon_files/lib/widgets/browser_view.dart
  2. 2
      packages/neon/neon_files/lib/widgets/file_list_tile.dart

1
packages/neon/neon_files/lib/widgets/browser_view.dart

@ -123,6 +123,7 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
bloc: widget.filesBloc, bloc: widget.filesBloc,
browserBloc: widget.bloc, browserBloc: widget.bloc,
details: details, details: details,
mode: widget.mode,
); );
}, },
isLoading: filesSnapshot.isLoading, isLoading: filesSnapshot.isLoading,

2
packages/neon/neon_files/lib/widgets/file_list_tile.dart

@ -73,7 +73,7 @@ class FileListTile extends StatelessWidget {
details: details, details: details,
bloc: bloc, bloc: bloc,
), ),
trailing: !details.hasTask && mode != FilesBrowserMode.noActions trailing: !details.hasTask && mode == FilesBrowserMode.browser
? FileActions(details: details) ? FileActions(details: details)
: const SizedBox.square( : const SizedBox.square(
dimension: largeIconSize, dimension: largeIconSize,

Loading…
Cancel
Save