From 11eb295c895248545ae45ae0f567e68a7ac2bf0f Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Fri, 16 Oct 2020 18:58:21 +0530 Subject: [PATCH] feat: wip message input --- lib/src/message_input.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 5925f317..f8cf4255 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -206,7 +206,7 @@ class MessageInputState extends State { direction: Axis.horizontal, crossAxisAlignment: CrossAxisAlignment.center, children: [ - if (_giphyEnabled) + if (!_giphyEnabled) Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ @@ -305,14 +305,14 @@ class MessageInputState extends State { ], ) ) : null, - suffixIcon: IconButton( + suffixIcon: _giphyEnabled ? IconButton( icon: Icon(Icons.cancel_outlined), onPressed: () { setState(() { _giphyEnabled = false; }); }, - ) + ) : null, ), textCapitalization: TextCapitalization.sentences, ),