Restore local chat layouts and add compact or hidden chat sidebar
This commit is contained in:
@@ -91,6 +91,7 @@ class ChatThreadView extends StatefulWidget {
|
||||
this.onColorSelected,
|
||||
this.onNextChat,
|
||||
this.paneControls = const [],
|
||||
this.sidebarControl,
|
||||
this.showBackButton,
|
||||
});
|
||||
|
||||
@@ -100,6 +101,7 @@ class ChatThreadView extends StatefulWidget {
|
||||
/// the bar's Next chat button; null when there is no other chat to open.
|
||||
final VoidCallback? onNextChat;
|
||||
final List<Widget> paneControls;
|
||||
final Widget? sidebarControl;
|
||||
final bool? showBackButton;
|
||||
|
||||
/// Sets the chat's shared colour (a palette name, null for none) from the
|
||||
@@ -1206,6 +1208,7 @@ class _ChatThreadViewState extends State<ChatThreadView> {
|
||||
// would take more than half the pill. A session without a mode draws
|
||||
// no mode control, so no empty pill is ever drawn.
|
||||
controls: [
|
||||
?widget.sidebarControl,
|
||||
...widget.paneControls,
|
||||
if (hasModel)
|
||||
ChatModelControl(
|
||||
|
||||
Reference in New Issue
Block a user