31 lines
1.2 KiB
Dart
31 lines
1.2 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
/// The run-detail sections in the web's order: Summary first, the run Graph
|
|
/// second, then the recorded Input, Output and Timeline.
|
|
///
|
|
/// The stable keys match the web client's `RUN_DETAIL_TABS`; the visible labels
|
|
/// are the same words. `renderedRunDetailTabs` decides which keys the strip
|
|
/// draws, so Input and Output stay addressable without being tabs.
|
|
enum RunDetailTab {
|
|
summary('Summary', Icons.summarize_outlined, CupertinoIcons.doc_text),
|
|
graph('Graph', Icons.account_tree_outlined, CupertinoIcons.arrow_branch),
|
|
input('Input', Icons.input, CupertinoIcons.arrow_down_doc),
|
|
output('Output', Icons.output, CupertinoIcons.arrow_up_doc),
|
|
timeline('Timeline', Icons.timeline, CupertinoIcons.list_bullet),
|
|
artifacts('Artifacts', Icons.inventory_2_outlined, CupertinoIcons.cube_box),
|
|
changes(
|
|
'Changes',
|
|
Icons.difference_outlined,
|
|
CupertinoIcons.arrow_right_arrow_left,
|
|
);
|
|
|
|
const RunDetailTab(this.label, this.icon, this.cupertinoIcon);
|
|
|
|
final String label;
|
|
|
|
/// The tab's glyph, so a tab is recognisable at a glance.
|
|
final IconData icon;
|
|
final IconData cupertinoIcon;
|
|
}
|