move gesture detector

This commit is contained in:
Salvatore Giordano
2020-11-09 11:17:39 +01:00
parent 53946d088d
commit 5c2de16581
+12 -12
View File
@@ -657,17 +657,6 @@ class MessageInputState extends State<MessageInput> {
), ),
], ],
), ),
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( GestureDetector(
onVerticalDragUpdate: (update) { onVerticalDragUpdate: (update) {
setState(() { setState(() {
@@ -679,6 +668,17 @@ class MessageInputState extends State<MessageInput> {
} }
}); });
}, },
child: Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(16.0),
topRight: Radius.circular(16.0),
),
),
child: Container(
width: double.infinity,
child: Center(
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(