Consolidate startup and shell on Material

Remove alternate application hosts, page scaffolds, connection controls and icon metadata while preserving Material routing. Isolate navigation fixtures from native update plugins and retain separate startup-update regressions.
This commit is contained in:
2026-11-11 20:11:17 +00:00
parent 3f05421e8b
commit 9e218f755a
17 changed files with 118 additions and 287 deletions
+1 -2
View File
@@ -36,8 +36,7 @@ class AdaptiveShell extends StatefulWidget {
final Map<AppDestination, WidgetBuilder> destinationBodies;
/// Retained for callers that still pass it; the shell always draws the
/// Material controls and scaffold whether this is set or not.
/// Retained for callers that still pass it; the shell always draws Material.
final bool cupertino;
/// The destination a route owner selected. When null the shell keeps its own
+2 -2
View File
@@ -14,7 +14,7 @@ class AttentionDestinationIcon extends StatelessWidget {
const AttentionDestinationIcon({
super.key,
required this.count,
required this.cupertino,
this.cupertino = false,
required this.child,
});
@@ -55,7 +55,7 @@ class ActivityBadge extends StatelessWidget {
super.key,
required this.count,
required this.label,
required this.cupertino,
this.cupertino = false,
required this.child,
this.bottom = false,
});
+5 -8
View File
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
enum AppDestination { pipelines, runs, chat, search, settings }
@@ -22,34 +21,32 @@ AppDestination shellTabFor(AppDestination destination) =>
/// The label and icons for [value].
///
/// [cupertinoIcon] is retained in the record for callers that still read it;
/// the shell itself draws [icon] on its Material path.
({String label, IconData icon, IconData cupertinoIcon}) destinationDetails(
AppDestination value,
) => switch (value) {
AppDestination.pipelines => (
label: 'Pipelines',
icon: Icons.account_tree_outlined,
cupertinoIcon: CupertinoIcons.arrow_branch,
cupertinoIcon: Icons.account_tree_outlined,
),
AppDestination.runs => (
label: 'Runs',
icon: Icons.play_circle_outline,
cupertinoIcon: CupertinoIcons.play_circle,
cupertinoIcon: Icons.play_circle_outline,
),
AppDestination.chat => (
label: 'Chat',
icon: Icons.chat_bubble_outline,
cupertinoIcon: CupertinoIcons.chat_bubble_2,
cupertinoIcon: Icons.chat_bubble_outline,
),
AppDestination.search => (
label: 'Search',
icon: Icons.search,
cupertinoIcon: CupertinoIcons.search,
cupertinoIcon: Icons.search,
),
AppDestination.settings => (
label: 'Settings',
icon: Icons.settings_outlined,
cupertinoIcon: CupertinoIcons.gear,
cupertinoIcon: Icons.settings_outlined,
),
};