Unify flexible list-detail panes and highlight active pipelines and runs
This commit is contained in:
@@ -41,6 +41,9 @@ class _AdaptiveShellState extends State<AdaptiveShell> {
|
||||
late AppDestination _selected;
|
||||
final Set<AppDestination> _visited = {};
|
||||
final ShellBarRegistry _bar = ShellBarRegistry();
|
||||
// The Cupertino sidebar and tab layouts have different parents. Preserve
|
||||
// destination selection/state while the same content moves between them.
|
||||
final GlobalKey _destinationStackKey = GlobalKey();
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
@@ -274,7 +277,7 @@ class _AdaptiveShellState extends State<AdaptiveShell> {
|
||||
}
|
||||
|
||||
Widget _destinationStack(List<Widget> contents, int index) =>
|
||||
IndexedStack(index: index, children: contents);
|
||||
IndexedStack(key: _destinationStackKey, index: index, children: contents);
|
||||
}
|
||||
|
||||
/// The wide-window Cupertino destination list: the web's 200px rail with the
|
||||
|
||||
Reference in New Issue
Block a user