lint
This commit is contained in:
@@ -476,7 +476,6 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
firstChild: IconButton(
|
firstChild: IconButton(
|
||||||
onPressed: () => setState(() => _actionsShrunk = false),
|
onPressed: () => setState(() => _actionsShrunk = false),
|
||||||
icon: Transform.rotate(
|
icon: Transform.rotate(
|
||||||
alignment: Alignment.center,
|
|
||||||
angle: (widget.actionsLocation == ActionsLocation.right ||
|
angle: (widget.actionsLocation == ActionsLocation.right ||
|
||||||
widget.actionsLocation == ActionsLocation.rightInside)
|
widget.actionsLocation == ActionsLocation.rightInside)
|
||||||
? pi
|
? pi
|
||||||
@@ -495,28 +494,27 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
splashRadius: 24,
|
splashRadius: 24,
|
||||||
),
|
),
|
||||||
secondChild: widget.disableAttachments &&
|
secondChild: widget.disableAttachments &&
|
||||||
!widget.showCommandsButton &&
|
!widget.showCommandsButton &&
|
||||||
widget.actions?.isNotEmpty != true
|
widget.actions?.isNotEmpty != true
|
||||||
? const Offstage()
|
? const Offstage()
|
||||||
: FittedBox(
|
: FittedBox(
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
children: <Widget>[
|
||||||
children: <Widget>[
|
if (!widget.disableAttachments) _buildAttachmentButton(),
|
||||||
if (!widget.disableAttachments) _buildAttachmentButton(),
|
if (widget.showCommandsButton &&
|
||||||
if (widget.showCommandsButton &&
|
widget.editMessage == null &&
|
||||||
widget.editMessage == null &&
|
StreamChannel.of(context)
|
||||||
StreamChannel.of(context)
|
.channel
|
||||||
.channel
|
.config
|
||||||
.config
|
?.commands
|
||||||
?.commands
|
.isNotEmpty ==
|
||||||
.isNotEmpty ==
|
true)
|
||||||
true)
|
_buildCommandButton(),
|
||||||
_buildCommandButton(),
|
...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,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user