use expanded gesturedetector
This commit is contained in:
@@ -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),
|
onTap: () {
|
||||||
child: InkWell(
|
pickFile(DefaultAttachmentTypes.file);
|
||||||
onTap: () {
|
},
|
||||||
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user