Float one chat pane over the app and toggle it with Ctrl+Y / Cmd+Y
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
import '../../ui/floating/floating_layer.dart';
|
||||
import 'terminal_float.dart';
|
||||
import 'terminal_hub.dart';
|
||||
import 'terminal_layout.dart';
|
||||
@@ -81,16 +82,25 @@ class TerminalStage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
// The window shares the app's floating layer, so it and a
|
||||
// floating chat stack by which was used last.
|
||||
if (float)
|
||||
TerminalFloat(
|
||||
key: const ValueKey('terminal-float'),
|
||||
hub: hub,
|
||||
layout: layout,
|
||||
cupertino: cupertino,
|
||||
bounds: constraints.biggest,
|
||||
reveal: reveal,
|
||||
focus: focus,
|
||||
hiding: hiding,
|
||||
Positioned.fill(
|
||||
child: FloatingLayer(
|
||||
open: layout.visible,
|
||||
builder: (context, bounds) => [
|
||||
TerminalFloat(
|
||||
key: const ValueKey('terminal-float'),
|
||||
hub: hub,
|
||||
layout: layout,
|
||||
cupertino: cupertino,
|
||||
bounds: bounds,
|
||||
reveal: reveal,
|
||||
focus: focus,
|
||||
hiding: hiding,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user