Show the phone terminal shortcut on the Chat tab only
This commit is contained in:
@@ -39,10 +39,17 @@ class AppTerminals {
|
||||
late final TerminalHub hub;
|
||||
|
||||
/// [shell] with the terminal panel, window or page around it.
|
||||
Widget surround(Widget shell, {required bool cupertino}) => TerminalSurface(
|
||||
/// [onChat]: the phone shortcut that reopens the terminal shows on the
|
||||
/// Chat tab only.
|
||||
Widget surround(
|
||||
Widget shell, {
|
||||
required bool cupertino,
|
||||
bool onChat = true,
|
||||
}) => TerminalSurface(
|
||||
hub: hub,
|
||||
layout: layout,
|
||||
cupertino: cupertino,
|
||||
shortcutHere: onChat,
|
||||
child: shell,
|
||||
);
|
||||
|
||||
|
||||
@@ -725,8 +725,11 @@ class _PipelinesAppState extends State<PipelinesApp>
|
||||
Widget _buildShell(BuildContext context, AppRoute route) =>
|
||||
ValueListenableBuilder<int>(
|
||||
valueListenable: _attentionCount,
|
||||
builder: (context, count, _) =>
|
||||
_terminals.surround(_shellFor(route, count), cupertino: _cupertino),
|
||||
builder: (context, count, _) => _terminals.surround(
|
||||
_shellFor(route, count),
|
||||
cupertino: _cupertino,
|
||||
onChat: route.kind == AppRouteKind.chat,
|
||||
),
|
||||
);
|
||||
|
||||
Widget _shellFor(AppRoute route, int attentionCount) {
|
||||
|
||||
Reference in New Issue
Block a user