fix(ui): Remove FittedBox from actions widget.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-09-10 18:19:23 +05:30
committed by xsahil03x
parent 720c0a80ed
commit 874002e8e7
@@ -604,20 +604,18 @@ class MessageInputState extends State<MessageInput> {
!widget.showCommandsButton && !widget.showCommandsButton &&
widget.actions?.isNotEmpty != true widget.actions?.isNotEmpty != true
? const Offstage() ? const Offstage()
: FittedBox( : Row(
child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly,
mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: <Widget>[
children: <Widget>[ if (!widget.disableAttachments)
if (!widget.disableAttachments) _buildAttachmentButton(context),
_buildAttachmentButton(context), if (widget.showCommandsButton &&
if (widget.showCommandsButton && widget.editMessage == null &&
widget.editMessage == null && channel.state != null &&
channel.state != null && channel.config?.commands.isNotEmpty == true)
channel.config?.commands.isNotEmpty == true) _buildCommandButton(context),
_buildCommandButton(context), ...widget.actions ?? [],
...widget.actions ?? [], ].insertBetween(const SizedBox(width: 8)),
].insertBetween(const SizedBox(width: 8)),
),
), ),
duration: const Duration(milliseconds: 300), duration: const Duration(milliseconds: 300),
alignment: Alignment.center, alignment: Alignment.center,