fix: Commands overflow bug
This commit is contained in:
@@ -417,19 +417,21 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
splashRadius: 24,
|
splashRadius: 24,
|
||||||
),
|
),
|
||||||
secondChild: Row(
|
secondChild: FittedBox(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
child: Row(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
if (!widget.disableAttachments) _buildAttachmentButton(),
|
children: [
|
||||||
if (widget.editMessage == null &&
|
if (!widget.disableAttachments) _buildAttachmentButton(),
|
||||||
StreamChannel.of(context)
|
if (widget.editMessage == null &&
|
||||||
.channel
|
StreamChannel.of(context)
|
||||||
?.config
|
.channel
|
||||||
?.commands
|
?.config
|
||||||
?.isNotEmpty ==
|
?.commands
|
||||||
true)
|
?.isNotEmpty ==
|
||||||
_buildCommandButton(),
|
true)
|
||||||
].insertBetween(const SizedBox(width: 8)),
|
_buildCommandButton(),
|
||||||
|
].insertBetween(const SizedBox(width: 8)),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
duration: Duration(milliseconds: 300),
|
duration: Duration(milliseconds: 300),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
|||||||
Reference in New Issue
Block a user