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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user