From b64a651d2d5a28b5f154b8d11e341bc14779fd75 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Fri, 16 Oct 2020 18:53:21 +0530 Subject: [PATCH] feat: wip message input --- lib/src/message_input.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 38312620..5925f317 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -295,7 +295,7 @@ class MessageInputState extends State { borderRadius: BorderRadius.circular(32), ), contentPadding: EdgeInsets.all(4), - prefix: Chip( + prefix: _giphyEnabled ? Chip( backgroundColor: StreamChatTheme.of(context).accentColor, label: Row( children: [ @@ -304,7 +304,7 @@ class MessageInputState extends State { Text('GIPHY', style: TextStyle(color: Colors.white),), ], ) - ), + ) : null, suffixIcon: IconButton( icon: Icon(Icons.cancel_outlined), onPressed: () {