Merge commit '61c34bb74ad275430fb8909f64fc18cd588fb943' into pipelines/run-20261111-1927-open-search-with-alt-slash-and-cmd-slash-f9f5
This commit is contained in:
@@ -36,8 +36,7 @@ class AdaptiveShell extends StatefulWidget {
|
||||
|
||||
final Map<AppDestination, WidgetBuilder> destinationBodies;
|
||||
|
||||
/// Retained for callers that still pass it; the shell always draws the
|
||||
/// Material controls and scaffold whether this is set or not.
|
||||
/// Retained for callers that still pass it; the shell always draws Material.
|
||||
final bool cupertino;
|
||||
|
||||
/// The destination a route owner selected. When null the shell keeps its own
|
||||
|
||||
@@ -14,7 +14,7 @@ class AttentionDestinationIcon extends StatelessWidget {
|
||||
const AttentionDestinationIcon({
|
||||
super.key,
|
||||
required this.count,
|
||||
required this.cupertino,
|
||||
this.cupertino = false,
|
||||
required this.child,
|
||||
});
|
||||
|
||||
@@ -55,7 +55,7 @@ class ActivityBadge extends StatelessWidget {
|
||||
super.key,
|
||||
required this.count,
|
||||
required this.label,
|
||||
required this.cupertino,
|
||||
this.cupertino = false,
|
||||
required this.child,
|
||||
this.bottom = false,
|
||||
});
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
enum AppDestination { pipelines, runs, chat, search, settings }
|
||||
@@ -22,34 +21,32 @@ AppDestination shellTabFor(AppDestination destination) =>
|
||||
|
||||
/// The label and icons for [value].
|
||||
///
|
||||
/// [cupertinoIcon] is retained in the record for callers that still read it;
|
||||
/// the shell itself draws [icon] on its Material path.
|
||||
({String label, IconData icon, IconData cupertinoIcon}) destinationDetails(
|
||||
AppDestination value,
|
||||
) => switch (value) {
|
||||
AppDestination.pipelines => (
|
||||
label: 'Pipelines',
|
||||
icon: Icons.account_tree_outlined,
|
||||
cupertinoIcon: CupertinoIcons.arrow_branch,
|
||||
cupertinoIcon: Icons.account_tree_outlined,
|
||||
),
|
||||
AppDestination.runs => (
|
||||
label: 'Runs',
|
||||
icon: Icons.play_circle_outline,
|
||||
cupertinoIcon: CupertinoIcons.play_circle,
|
||||
cupertinoIcon: Icons.play_circle_outline,
|
||||
),
|
||||
AppDestination.chat => (
|
||||
label: 'Chat',
|
||||
icon: Icons.chat_bubble_outline,
|
||||
cupertinoIcon: CupertinoIcons.chat_bubble_2,
|
||||
cupertinoIcon: Icons.chat_bubble_outline,
|
||||
),
|
||||
AppDestination.search => (
|
||||
label: 'Search',
|
||||
icon: Icons.search,
|
||||
cupertinoIcon: CupertinoIcons.search,
|
||||
cupertinoIcon: Icons.search,
|
||||
),
|
||||
AppDestination.settings => (
|
||||
label: 'Settings',
|
||||
icon: Icons.settings_outlined,
|
||||
cupertinoIcon: CupertinoIcons.gear,
|
||||
cupertinoIcon: Icons.settings_outlined,
|
||||
),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user