move gesture detector
This commit is contained in:
+22
-22
@@ -657,28 +657,28 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Container(
|
GestureDetector(
|
||||||
decoration: BoxDecoration(
|
onVerticalDragUpdate: (update) {
|
||||||
color: Colors.white,
|
setState(() {
|
||||||
borderRadius: BorderRadius.only(
|
_filePickerSize -= update.delta.dy;
|
||||||
topLeft: Radius.circular(16.0),
|
if (_filePickerSize < 100) {
|
||||||
topRight: Radius.circular(16.0),
|
_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: Container(
|
||||||
child: Row(
|
width: double.infinity,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
child: Center(
|
||||||
children: [
|
|
||||||
GestureDetector(
|
|
||||||
onVerticalDragUpdate: (update) {
|
|
||||||
setState(() {
|
|
||||||
_filePickerSize -= update.delta.dy;
|
|
||||||
if (_filePickerSize < 100) {
|
|
||||||
_filePickerSize = 100.0;
|
|
||||||
} else if (_filePickerSize > 500) {
|
|
||||||
_filePickerSize = 500;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: Container(
|
child: Container(
|
||||||
@@ -691,7 +691,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|||||||
Reference in New Issue
Block a user