fix messageinput overflow when no action is available

This commit is contained in:
Salvatore Giordano
2021-05-05 12:36:13 +02:00
parent 95f849e442
commit 660bae3583
@@ -482,7 +482,11 @@ class MessageInputState extends State<MessageInput> {
),
splashRadius: 24,
),
secondChild: FittedBox(
secondChild: widget.disableAttachments &&
!widget.showCommandsButton &&
widget.actions?.isNotEmpty != true
? Offstage()
: FittedBox(
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,