Remove Cupertino UI branches from shared primitives
Keep the existing Material rendering, semantics, and interaction paths while removing obsolete Cupertino imports, alternate widgets, and dynamic-color dependencies. Record focused verification and remaining fixture limitations for final integration.
This commit is contained in:
@@ -108,7 +108,7 @@ class GraphStageNode extends StatelessWidget {
|
||||
// coloured, smaller text in the status's own hue.
|
||||
final color = status == null
|
||||
? null
|
||||
: runStatusColor(graphStatusState(status)).resolveFrom(context);
|
||||
: runStatusColor(graphStatusState(status), Theme.of(context).colorScheme);
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
||||
@@ -238,7 +238,7 @@ class PipelineListPanel extends StatelessWidget {
|
||||
? null
|
||||
: AppListStatusDot(
|
||||
key: Key('pipeline-status-${pipeline.id}'),
|
||||
color: runStatusColor(badge.state).resolveFrom(context),
|
||||
color: runStatusColor(badge.state, Theme.of(context).colorScheme),
|
||||
semanticLabel: runStateLabel(badge.state),
|
||||
),
|
||||
subtitle: Text(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../ui/adaptive/floating_bar_layout.dart';
|
||||
import '../../../ui/layout/app_list_avatar.dart';
|
||||
@@ -116,7 +116,7 @@ class RunTimelineRow extends StatelessWidget {
|
||||
context,
|
||||
visit.outcome,
|
||||
)
|
||||
: runStatusColor(_state).resolveFrom(context);
|
||||
: runStatusColor(_state, Theme.of(context).colorScheme);
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 2),
|
||||
decoration: BoxDecoration(
|
||||
@@ -145,7 +145,7 @@ class RunTimelineRow extends StatelessWidget {
|
||||
divider: divider,
|
||||
onTap: onTap,
|
||||
leading: AppListAvatar(
|
||||
foreground: runStatusColor(state).resolveFrom(context),
|
||||
foreground: runStatusColor(state, Theme.of(context).colorScheme),
|
||||
child: RunStatusIcon(
|
||||
state: state,
|
||||
label: visit.status.isEmpty ? 'Status unavailable' : visit.status,
|
||||
|
||||
@@ -94,7 +94,7 @@ class _FactGrid extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _pill(BuildContext context, VisitFact fact) {
|
||||
final color = runStatusColor(_stateOf(fact)).resolveFrom(context);
|
||||
final color = runStatusColor(_stateOf(fact), Theme.of(context).colorScheme);
|
||||
return DecoratedBox(
|
||||
decoration: ShapeDecoration(
|
||||
color: color.withValues(alpha: 0.16),
|
||||
|
||||
@@ -126,7 +126,7 @@ class RunListRow extends StatelessWidget {
|
||||
onLongPress: selecting ? null : onLongPress,
|
||||
selectionControl: selecting ? _checkbox(context) : null,
|
||||
leading: AppListAvatar(
|
||||
foreground: runStatusColor(state).resolveFrom(context),
|
||||
foreground: runStatusColor(state, Theme.of(context).colorScheme),
|
||||
child: RunStatusIcon(state: state, label: runStatusLabel(run)),
|
||||
),
|
||||
title: Text(title),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../core/api_gateway.dart';
|
||||
import '../../../ui/status/run_status_icon.dart';
|
||||
@@ -54,12 +54,12 @@ class RunPathMini extends StatelessWidget {
|
||||
final stages = path.stages.length > maxStages
|
||||
? path.stages.sublist(path.stages.length - maxStages)
|
||||
: path.stages;
|
||||
final line = CupertinoColors.separator.resolveFrom(context);
|
||||
final line = Theme.of(context).colorScheme.outlineVariant;
|
||||
Widget box(RunPathStage stage) => Container(
|
||||
width: 14,
|
||||
height: 10,
|
||||
decoration: BoxDecoration(
|
||||
color: runStatusColor(stage.state).resolveFrom(context),
|
||||
color: runStatusColor(stage.state, Theme.of(context).colorScheme),
|
||||
borderRadius: BorderRadius.circular(3),
|
||||
),
|
||||
);
|
||||
@@ -83,7 +83,8 @@ class RunPathMini extends StatelessWidget {
|
||||
shape: BoxShape.circle,
|
||||
color: runStatusColor(
|
||||
end == '#success' ? 'succeeded' : 'failed',
|
||||
).resolveFrom(context),
|
||||
Theme.of(context).colorScheme,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -92,7 +92,7 @@ class RunsStatsPage extends StatelessWidget {
|
||||
painter: _PiePainter([
|
||||
for (final entry in byState.entries)
|
||||
(
|
||||
runStatusColor(entry.key).resolveFrom(context),
|
||||
runStatusColor(entry.key, Theme.of(context).colorScheme),
|
||||
entry.value,
|
||||
),
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user