reordered files app bar actions by moving search icon

This commit is contained in:
2026-05-09 23:43:29 +02:00
parent 15833f3685
commit c50a850ac9
+9 -9
View File
@@ -102,15 +102,6 @@ class _FilesViewState extends State<_FilesView> {
appBar: AppBar(
title: Text(widget.path.isNotEmpty ? widget.path.last : 'Dateien'),
actions: [
IconButton(
tooltip: 'Suchen',
icon: const Icon(Icons.search),
onPressed: () async {
final delegate = FilesSearchDelegate(pathScope: widget.path);
await showSearch<void>(context: context, delegate: delegate);
delegate.disposeController();
},
),
FilesSortActions(
currentSort: currentSort,
ascending: currentSortDirection,
@@ -127,6 +118,15 @@ class _FilesViewState extends State<_FilesView> {
});
},
),
IconButton(
tooltip: 'Suchen',
icon: const Icon(Icons.search),
onPressed: () async {
final delegate = FilesSearchDelegate(pathScope: widget.path);
await showSearch<void>(context: context, delegate: delegate);
delegate.disposeController();
},
),
],
),
floatingActionButton: FloatingActionButton(