Merge branch 'main' into pipelines/run-20261111-1951-material-cleanup-shared-ui-primitives-65fb
# Conflicts: # app/test/features/runs/ui/run_path_mini_test.dart
This commit is contained in:
@@ -2,7 +2,6 @@ import '../../ui/adaptive/segmented_bar.dart';
|
||||
import '../../shell/destination.dart';
|
||||
import '../../shell/detail_page.dart';
|
||||
import '../../shell/list_detail.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../core/api_gateway.dart';
|
||||
@@ -329,7 +328,6 @@ class _PipelinesScreenState extends State<PipelinesScreen> {
|
||||
key: const Key('pipelines-refresh'),
|
||||
label: 'Refresh',
|
||||
icon: Icons.refresh,
|
||||
cupertinoIcon: CupertinoIcons.refresh,
|
||||
onPressed: _controller.load,
|
||||
);
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../core/api_gateway.dart';
|
||||
@@ -176,7 +175,6 @@ class _RunPipelineActionState extends State<RunPipelineAction> {
|
||||
key: runPipelineActionKey,
|
||||
label: 'Run ${widget.detail.displayName}',
|
||||
icon: Icons.play_arrow_rounded,
|
||||
cupertinoIcon: CupertinoIcons.play_fill,
|
||||
onPressed: _open,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../ui/adaptive/segmented_bar_overflow.dart';
|
||||
@@ -6,14 +5,13 @@ import '../../../ui/adaptive/segmented_bar_overflow.dart';
|
||||
/// One icon action in the Pipelines bar's actions pill: a Material
|
||||
/// [IconButton] with its tooltip. A narrow bar moves it into its More menu.
|
||||
///
|
||||
/// [cupertinoIcon] is retained in the signature for callers that still pass
|
||||
/// it; the Material icon is drawn.
|
||||
Widget pipelineBarIconButton(
|
||||
BuildContext context, {
|
||||
required Key key,
|
||||
required String label,
|
||||
required IconData icon,
|
||||
required IconData cupertinoIcon,
|
||||
// Compatibility for callers outside this lane; Material is always drawn.
|
||||
IconData? cupertinoIcon,
|
||||
required VoidCallback? onPressed,
|
||||
}) {
|
||||
return SegmentedOverflowAction(
|
||||
@@ -44,7 +42,6 @@ Widget pipelineSchedulesButton(BuildContext context, VoidCallback? onPressed) =>
|
||||
key: const Key('pipelines-open-schedules'),
|
||||
label: 'Schedules',
|
||||
icon: Icons.schedule,
|
||||
cupertinoIcon: CupertinoIcons.calendar,
|
||||
onPressed: onPressed,
|
||||
);
|
||||
|
||||
@@ -55,6 +52,5 @@ Widget pipelineSettingsButton(BuildContext context, VoidCallback? onPressed) =>
|
||||
key: const Key('pipelines-open-settings'),
|
||||
label: 'Settings',
|
||||
icon: Icons.settings_outlined,
|
||||
cupertinoIcon: CupertinoIcons.gear,
|
||||
onPressed: onPressed,
|
||||
);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import '../../../core/servers/server_context.dart';
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../core/api_gateway.dart';
|
||||
@@ -409,7 +408,6 @@ class _PipelineDetailPanelState extends State<PipelineDetailPanel> {
|
||||
? 'View runs of this pipeline'
|
||||
: 'View runs of ${detail.name}',
|
||||
icon: Icons.list_alt_outlined,
|
||||
cupertinoIcon: CupertinoIcons.list_bullet,
|
||||
onPressed: widget.onViewPipelineRuns == null
|
||||
? null
|
||||
: () => widget.onViewPipelineRuns!(detail.id),
|
||||
|
||||
@@ -1,20 +1,16 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// The detail sections: Summary, the pinned definition Graph and Source.
|
||||
enum PipelineDetailTab {
|
||||
summary('Summary', Icons.summarize_outlined, CupertinoIcons.doc_text),
|
||||
graph('Graph', Icons.hub_outlined, CupertinoIcons.flowchart),
|
||||
source('Source', Icons.code, CupertinoIcons.chevron_left_slash_chevron_right);
|
||||
summary('Summary', Icons.summarize_outlined),
|
||||
graph('Graph', Icons.hub_outlined),
|
||||
source('Source', Icons.code);
|
||||
|
||||
const PipelineDetailTab(this.label, this.icon, this.cupertinoIcon);
|
||||
const PipelineDetailTab(this.label, this.icon);
|
||||
|
||||
final String label;
|
||||
|
||||
/// The tab's glyph, the only thing the bottom bar draws (the label is its
|
||||
/// accessible name); distinct from the shell's Pipelines tab beneath it.
|
||||
final IconData icon;
|
||||
|
||||
/// Retained for callers; the Material [icon] is drawn.
|
||||
final IconData cupertinoIcon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user