mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-24 01:14:22 +01:00
Include tooltips for single message + continuous mode
This commit is contained in:
@@ -67,30 +67,36 @@ class _ChatInputFieldState extends State<ChatInputField> {
|
|||||||
mainAxisSize: MainAxisSize.min, // Set to minimum space
|
mainAxisSize: MainAxisSize.min, // Set to minimum space
|
||||||
children: [
|
children: [
|
||||||
if (!widget.isContinuousMode)
|
if (!widget.isContinuousMode)
|
||||||
// TODO: Include tool tip to explain single message sending
|
Tooltip(
|
||||||
IconButton(
|
message: 'Send a single message',
|
||||||
|
child: IconButton(
|
||||||
|
splashRadius: 0.1,
|
||||||
|
icon: const Icon(Icons.send),
|
||||||
|
onPressed: () {
|
||||||
|
widget.onSendPressed(_controller.text);
|
||||||
|
_controller.clear();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// TODO: Include pop up to explain continuous mode reprecussions
|
||||||
|
Tooltip(
|
||||||
|
message: widget.isContinuousMode
|
||||||
|
? ''
|
||||||
|
: 'Enable continuous mode',
|
||||||
|
child: IconButton(
|
||||||
splashRadius: 0.1,
|
splashRadius: 0.1,
|
||||||
icon: const Icon(Icons.send),
|
icon: Icon(widget.isContinuousMode
|
||||||
|
? Icons.pause
|
||||||
|
: Icons.fast_forward),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
widget.onSendPressed(_controller.text);
|
if (!widget.isContinuousMode) {
|
||||||
_controller.clear();
|
widget.onSendPressed(_controller.text);
|
||||||
|
_controller.clear();
|
||||||
|
_focusNode.unfocus();
|
||||||
|
}
|
||||||
|
widget.onContinuousModePressed();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
// TODO: Include tool tip to explain continuous mode
|
|
||||||
// TODO: Include pop up to explain continuous mode reprecussions
|
|
||||||
IconButton(
|
|
||||||
splashRadius: 0.1,
|
|
||||||
icon: Icon(widget.isContinuousMode
|
|
||||||
? Icons.pause
|
|
||||||
: Icons.fast_forward),
|
|
||||||
onPressed: () {
|
|
||||||
if (!widget.isContinuousMode) {
|
|
||||||
widget.onSendPressed(_controller.text);
|
|
||||||
_controller.clear();
|
|
||||||
_focusNode.unfocus();
|
|
||||||
}
|
|
||||||
widget.onContinuousModePressed();
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user