From bdd94693717ca31c660c95845734877630921227 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Fri, 11 Dec 2020 15:09:25 +0100 Subject: [PATCH] use expanded gesturedetector --- lib/src/message_input.dart | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index e60c6187..542f63e7 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -841,12 +841,13 @@ class MessageInputState extends State { if (snapshot.data) { if (_attachmentContainsFile) { - return Container( - color: Color(0xfff2f2f2), - child: InkWell( - onTap: () { - pickFile(DefaultAttachmentTypes.file); - }, + return GestureDetector( + onTap: () { + pickFile(DefaultAttachmentTypes.file); + }, + child: Container( + constraints: BoxConstraints.expand(), + color: Color(0xfff2f2f2), child: Text( 'Add more files', style: TextStyle( @@ -854,8 +855,8 @@ class MessageInputState extends State { fontWeight: FontWeight.bold, ), ), + alignment: Alignment.center, ), - alignment: Alignment.center, ); } return MediaListView(