Complete Material-only APIs and fixtures

Remove obsolete control-family flags and icon metadata across all callers, dead alternate themes and host helpers, obsolete test setup, and the unused icon-font dependency. Preserve native Material Back transitions. Make navigation fixtures independent of update plugins and answer auxiliary shell snapshots so the complete application suite can run deterministically.
This commit is contained in:
2026-11-11 21:55:39 +00:00
parent 63b2fd12cd
commit 9551eceaed
222 changed files with 540 additions and 1351 deletions
-5
View File
@@ -14,7 +14,6 @@ class MyApp extends StatelessWidget {
const MyApp({
super.key,
this.destinationBodies = const {},
this.cupertino,
this.destination,
this.onDestinationSelected,
this.fonts,
@@ -26,7 +25,6 @@ class MyApp extends StatelessWidget {
const MyApp.router({
super.key,
required RouterConfig<Object> this.routerConfig,
this.cupertino,
this.fonts,
}) : destinationBodies = const {},
destination = null,
@@ -34,9 +32,6 @@ class MyApp extends StatelessWidget {
final Map<AppDestination, WidgetBuilder> destinationBodies;
/// Retained for source compatibility with older callers; Material is the
/// only application host.
final bool? cupertino;
final AppDestination? destination;
final ValueChanged<AppDestination>? onDestinationSelected;
final RouterConfig<Object>? routerConfig;
-5
View File
@@ -46,7 +46,6 @@ String routeLocation(Uri uri) {
class AppRouterDelegate extends RouterDelegate<AppRoute> with ChangeNotifier {
AppRouterDelegate({
required this.builder,
this.cupertino,
this.searchBuilder,
this.templatesBuilder,
this.schedulesBuilder,
@@ -74,10 +73,6 @@ class AppRouterDelegate extends RouterDelegate<AppRoute> with ChangeNotifier {
/// state and selection, and the standard navigation bar supplies Back.
final Widget Function(BuildContext context)? searchBuilder;
/// Retained for compatibility with older composition callers. Routes use
/// Material pages on every platform.
final bool? cupertino;
final _navigatorKey = GlobalKey<NavigatorState>();
static const _pageKey = ValueKey<String>('pipelines-shell');
static const _searchPageKey = ValueKey<String>('app-search');
+10 -16
View File
@@ -53,24 +53,18 @@ class AppTerminals {
/// app's floating [windows] above both.
/// [onChat]: the phone shortcut that reopens the terminal shows on the
/// Chat tab only.
Widget surround(
Widget shell, {
required bool cupertino,
bool onChat = true,
Widget? windows,
}) => TerminalSurface(
hub: hub,
layout: layout,
cupertino: cupertino,
shortcutHere: onChat,
windows: windows,
floating: floating,
child: shell,
);
Widget surround(Widget shell, {bool onChat = true, Widget? windows}) =>
TerminalSurface(
hub: hub,
layout: layout,
shortcutHere: onChat,
windows: windows,
floating: floating,
child: shell,
);
/// The bar button showing or hiding the terminal.
Widget toggle({required bool cupertino}) =>
TerminalToggleButton(layout: layout, cupertino: cupertino);
Widget toggle() => TerminalToggleButton(layout: layout);
void dispose() {
floating?.dispose();
+1 -4
View File
@@ -14,12 +14,10 @@ class ConnectionGate extends StatelessWidget {
super.key,
required this.session,
required this.server,
this.cupertino,
});
final AppSession session;
final ServerEndpoint server;
final bool? cupertino;
@override
Widget build(BuildContext context) {
@@ -105,10 +103,9 @@ class ConnectionGate extends StatelessWidget {
/// A compact status bar above retained content after the first connection.
class ConnectionBanner extends StatelessWidget {
const ConnectionBanner({super.key, required this.session, this.cupertino});
const ConnectionBanner({super.key, required this.session});
final AppSession session;
final bool? cupertino;
@override
Widget build(BuildContext context) {
+4 -18
View File
@@ -75,7 +75,6 @@ class PipelinesApp extends StatefulWidget {
super.key,
required this.server,
this.client,
this.cupertino,
this.routeInformationProvider,
this.knownServer = false,
this.serverAddresses,
@@ -108,7 +107,6 @@ class PipelinesApp extends StatefulWidget {
final WindowManager? windows;
final ServerEndpoint server;
final PipelinesClient? client;
final bool? cupertino;
/// Test seam: the Router's initial and subsequent route information.
final RouteInformationProvider? routeInformationProvider;
@@ -145,7 +143,6 @@ class _PipelinesAppState extends State<PipelinesApp>
late final RouteInformationProvider _provider;
late final bool _ownsProvider;
late final RouterConfig<AppRoute> _config;
late final bool _cupertino;
/// Advances when a template create is accepted. The Pipelines destination
/// uses it to re-read through its mounted controller; no row is inserted
@@ -337,8 +334,6 @@ class _PipelinesAppState extends State<PipelinesApp>
type: RouteInformationReportingType.neglect,
);
}
// Kept as a compatibility field on the widget; composition is Material-only.
_cupertino = false;
_notifications.onOpenRun = (id) {
if (mounted) _delegate.goTo(AppRoute.run(id));
};
@@ -355,7 +350,6 @@ class _PipelinesAppState extends State<PipelinesApp>
MachineElevation.defaultPrompt = _elevationPrompt;
_delegate = AppRouterDelegate(
initial: initial,
cupertino: _cupertino,
templatesBuilder: _buildTemplates,
schedulesBuilder: _buildSchedules,
builder: _buildShell,
@@ -445,7 +439,6 @@ class _PipelinesAppState extends State<PipelinesApp>
nativePlatform: update is AndroidLaunchUpdate
? update.update.platform
: '',
cupertino: _cupertino,
);
if (accepted != true || !mounted || !dialogContext.mounted) return;
if (!widget.webPlatform && endpoint != _session.endpoint) return;
@@ -457,16 +450,11 @@ class _PipelinesAppState extends State<PipelinesApp>
dialogContext,
(update as AndroidLaunchUpdate).update,
installer: widget.androidInstaller,
cupertino: _cupertino,
);
}
} catch (error) {
if (mounted && dialogContext.mounted) {
await showLaunchUpdateFailure(
dialogContext,
error,
cupertino: _cupertino,
);
await showLaunchUpdateFailure(dialogContext, error);
}
}
} catch (_) {
@@ -584,11 +572,11 @@ class _PipelinesAppState extends State<PipelinesApp>
@override
Widget build(BuildContext context) => widget.servers == null
? MyApp.router(cupertino: _cupertino, routerConfig: _config)
? MyApp.router(routerConfig: _config)
: ServerContext(
connections: widget.servers!,
serverId: widget.serverId,
child: MyApp.router(cupertino: _cupertino, routerConfig: _config),
child: MyApp.router(routerConfig: _config),
);
/// Open a result through the exact identity the hit records. An unresolvable
@@ -796,7 +784,6 @@ class _PipelinesAppState extends State<PipelinesApp>
valueListenable: _attentionCount,
builder: (context, count, _) => _terminals.surround(
_shellFor(route, count),
cupertino: _cupertino,
onChat: route.kind == AppRouteKind.chat,
windows: WindowHost(manager: _windows),
),
@@ -823,10 +810,9 @@ class _PipelinesAppState extends State<PipelinesApp>
// Shown on every tab while the app has floating windows.
WindowsMenuButton(manager: _windows),
if (_destinationOf(route.kind) == AppDestination.chat)
_terminals.toggle(cupertino: _cupertino),
_terminals.toggle(),
],
attentionCount: attentionCount,
cupertino: _cupertino,
destination: _destinationOf(route.kind),
onDestinationSelected: _selectDestination,
onClosePage: () => _delegate.goTo(
@@ -105,10 +105,8 @@ class _SchedulesDestinationState extends State<SchedulesDestination> {
final body = _body();
// The round Back closes the page; Refresh sits in the actions pill.
final bar = SegmentedBar(
cupertino: false,
leading: SegmentedBackButton(
key: schedulesPageBackKey,
cupertino: false,
onPressed: widget.onBack,
),
title: 'Schedules',
@@ -116,7 +114,6 @@ class _SchedulesDestinationState extends State<SchedulesDestination> {
if (widget.session.everConnected)
ScheduleRefreshAction(
controller: _controller,
cupertino: false,
onRefresh: () => unawaited(_controller.refresh()),
),
],
@@ -136,7 +133,6 @@ class _SchedulesDestinationState extends State<SchedulesDestination> {
controller: _controller,
searchController: _search,
scrollController: _scroll,
cupertino: false,
onOpen: (schedule) {
final id = schedule.pipelineId;
if (id != null) widget.onOpenPipeline(id);
+1 -1
View File
@@ -64,7 +64,7 @@ class _SearchPage extends StatelessWidget {
@override
Widget build(BuildContext context) => Scaffold(
extendBodyBehindAppBar: true,
appBar: const SegmentedBar(cupertino: false, title: 'Search'),
appBar: const SegmentedBar(title: 'Search'),
body: SafeArea(child: child),
);
}
+3 -14
View File
@@ -89,16 +89,13 @@ class _TemplatesDestinationState extends State<TemplatesDestination> {
final spec = _bar.specFor(AppDestination.settings);
final onDetailBack = spec?.onBack;
return SegmentedBar(
cupertino: false,
leading: onDetailBack != null
? SegmentedBackButton(
key: templateDetailBackKey,
cupertino: false,
onPressed: onDetailBack,
)
: SegmentedBackButton(
key: templatesPageBackKey,
cupertino: false,
onPressed: widget.onBack,
),
title: spec?.title ?? 'Templates',
@@ -111,19 +108,12 @@ class _TemplatesDestinationState extends State<TemplatesDestination> {
final session = widget.session;
if (!session.everConnected) {
return BelowTopBar(
child: ConnectionGate(
session: session,
server: widget.server,
cupertino: false,
),
child: ConnectionGate(session: session, server: widget.server),
);
}
// A connection banner stays below the bar; the gallery keeps its place.
return TopBarNotices(
notices: [
if (!session.connected)
ConnectionBanner(session: session, cupertino: false),
],
notices: [if (!session.connected) ConnectionBanner(session: session)],
child: TemplatesScreen(
gateway: session.gateway,
embedded: true,
@@ -142,8 +132,7 @@ class _BarSlot extends StatelessWidget implements PreferredSizeWidget {
final Widget child;
@override
Size get preferredSize =>
const SegmentedBar(cupertino: false, title: '').preferredSize;
Size get preferredSize => const SegmentedBar(title: '').preferredSize;
@override
Widget build(BuildContext context) => child;