feat(app): Runs list filter, sort and usage charts are app-bar icons; the text filter is inside the filter sheet

This commit is contained in:
2026-10-23 17:54:40 +01:00
parent fb91d8b02a
commit 64bd2b6b61
7 changed files with 671 additions and 401 deletions
+11
View File
@@ -69,9 +69,14 @@ class ShellBar extends StatefulWidget {
this.title,
this.onBack,
this.actions = const [],
this.active = true,
required this.child,
});
/// False while the screen is kept mounted but hidden (a list under an open
/// detail): it then gives the bar up.
final bool active;
final String? title;
final VoidCallback? onBack;
final List<Widget> actions;
@@ -99,6 +104,12 @@ class _ShellBarState extends State<ShellBar> {
void _publish() {
final scope = _scope;
if (scope == null) return;
if (!widget.active) {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) scope.registry._clear(scope.destination, _owner);
});
return;
}
final spec = ShellBarSpec(
title: widget.title,
onBack: widget.onBack,