From f858cbf46044e2ec478485e7960fd0844d966abc Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Thu, 29 Oct 2020 15:12:46 +0530 Subject: [PATCH] fix: qa fixes --- images/giphy_icon.png | Bin 0 -> 400 bytes lib/src/message_input.dart | 6 ++++++ pubspec.yaml | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 images/giphy_icon.png diff --git a/images/giphy_icon.png b/images/giphy_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ea99e8341848dcbb49d654ff1847818bb301cf92 GIT binary patch literal 400 zcmV;B0dM|^P)xRK7oUqgCh17d;%Xq#3#_r!AWp;a1b4&P(?>Wp+hP3 z51~VHPf!1(ZFq-TZqD{20kU0~*(*mS~qP@%xE^K=!GnI-@@WFcR1u(CkFdy`sC*C;@Zdf(X!+WEF zj_*ekOxFp8L1^OW#Bm-=C7iLLk|2p^*Tq+}Ikeh0j`8DdLHP$s4B~#bTBx#Q;BeR7 z)eI)^TJqZkWYXC+4Pw{;gPCpQ13(%`=OGdcJ`W%@ioBj0baEi~67BmFByp=-NI!7# uGHx5*#vp6MKRCiN=+#dc|9??~b?E~xRAC+pj+ux60000 { enabled: _inputEnabled, minLines: null, maxLines: null, + expands: true, onSubmitted: (_) { sendMessage(); }, @@ -513,6 +514,11 @@ class MessageInputState extends State { ...commands .map( (c) => ListTile( + leading: c.name == 'giphy' ? CircleAvatar( + backgroundColor: Colors.black, + child: Image.asset('images/giphy_icon.png'), + maxRadius: 12.0, + ) : null, title: Text.rich( TextSpan( text: '${c.name.capitalize()}', diff --git a/pubspec.yaml b/pubspec.yaml index edd19589..a9285b4c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -32,6 +32,8 @@ dependencies: clipboard: ^0.1.2+8 flutter: + assets: + - images/giphy_icon.png fonts: - family: stream-icons fonts: