move gesture detector

This commit is contained in:
Salvatore Giordano
2020-11-09 11:17:39 +01:00
parent 53946d088d
commit 5c2de16581
+22 -22
View File
@@ -657,28 +657,28 @@ class MessageInputState extends State<MessageInput> {
),
],
),
Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(16.0),
topRight: Radius.circular(16.0),
GestureDetector(
onVerticalDragUpdate: (update) {
setState(() {
_filePickerSize -= update.delta.dy;
if (_filePickerSize < 100) {
_filePickerSize = 100.0;
} else if (_filePickerSize > 500) {
_filePickerSize = 500;
}
});
},
child: Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(16.0),
topRight: Radius.circular(16.0),
),
),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
GestureDetector(
onVerticalDragUpdate: (update) {
setState(() {
_filePickerSize -= update.delta.dy;
if (_filePickerSize < 100) {
_filePickerSize = 100.0;
} else if (_filePickerSize > 500) {
_filePickerSize = 500;
}
});
},
child: Container(
width: double.infinity,
child: Center(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
@@ -691,7 +691,7 @@ class MessageInputState extends State<MessageInput> {
),
),
),
],
),
),
),
Expanded(