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:
@@ -77,8 +77,10 @@ class _ChatShellRunCardState extends State<ChatShellRunCard> {
|
||||
Widget _body(BuildContext context, ChatShellRun run) {
|
||||
final controller = widget.controller;
|
||||
final error = controller.errorFor(run.id);
|
||||
final command = (chatCardBodyStyle(context, false) ?? const TextStyle())
|
||||
.copyWith(fontFamily: appMonospaceFamily, fontWeight: FontWeight.w600);
|
||||
final command = (chatCardBodyStyle(context) ?? const TextStyle()).copyWith(
|
||||
fontFamily: appMonospaceFamily,
|
||||
fontWeight: FontWeight.w600,
|
||||
);
|
||||
return Column(
|
||||
key: ValueKey<String>('chat-shell-run-${run.id}'),
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -91,7 +93,7 @@ class _ChatShellRunCardState extends State<ChatShellRunCard> {
|
||||
padding: const EdgeInsetsDirectional.only(end: 12),
|
||||
child: Icon(
|
||||
Icons.terminal,
|
||||
color: chatCardSecondaryColor(context, false),
|
||||
color: chatCardSecondaryColor(context),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
@@ -104,10 +106,7 @@ class _ChatShellRunCardState extends State<ChatShellRunCard> {
|
||||
style: command,
|
||||
),
|
||||
if (run.directory.isNotEmpty)
|
||||
Text(
|
||||
run.directory,
|
||||
style: chatCardSecondaryStyle(context, false),
|
||||
),
|
||||
Text(run.directory, style: chatCardSecondaryStyle(context)),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -132,10 +131,7 @@ class _ChatShellRunCardState extends State<ChatShellRunCard> {
|
||||
if (run.error.isNotEmpty && !run.running)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
child: Text(
|
||||
run.error,
|
||||
style: chatCardSecondaryStyle(context, false),
|
||||
),
|
||||
child: Text(run.error, style: chatCardSecondaryStyle(context)),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
ChatShellCardActions(
|
||||
@@ -149,8 +145,9 @@ class _ChatShellRunCardState extends State<ChatShellRunCard> {
|
||||
child: Text(
|
||||
error,
|
||||
key: const Key('chat-shell-run-error'),
|
||||
style: (chatCardBodyStyle(context, false) ?? const TextStyle())
|
||||
.copyWith(color: chatCardErrorColor(context, false)),
|
||||
style: (chatCardBodyStyle(context) ?? const TextStyle()).copyWith(
|
||||
color: chatCardErrorColor(context),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user