use expanded gesturedetector

This commit is contained in:
Salvatore Giordano
2020-12-11 15:24:23 +01:00
parent c487ce92d0
commit bdd9469371
+5 -4
View File
@@ -841,12 +841,13 @@ class MessageInputState extends State<MessageInput> {
if (snapshot.data) { if (snapshot.data) {
if (_attachmentContainsFile) { if (_attachmentContainsFile) {
return Container( return GestureDetector(
color: Color(0xfff2f2f2),
child: InkWell(
onTap: () { onTap: () {
pickFile(DefaultAttachmentTypes.file); pickFile(DefaultAttachmentTypes.file);
}, },
child: Container(
constraints: BoxConstraints.expand(),
color: Color(0xfff2f2f2),
child: Text( child: Text(
'Add more files', 'Add more files',
style: TextStyle( style: TextStyle(
@@ -854,8 +855,8 @@ class MessageInputState extends State<MessageInput> {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
),
alignment: Alignment.center, alignment: Alignment.center,
),
); );
} }
return MediaListView( return MediaListView(