我需要将DraggableScrollableSheet
与SingleChildScrollView
一起使用,并将reverse
设置为TextField
的跳转点。
但是在将reverse
设置为true之后,DraggableScrollableSheet
也被颠倒了,我该如何解决呢?
DraggableScrollableSheet(
minChildSize: 0.73,
maxChildSize: 0.83,
initialChildSize: 0.73,
builder: (context, scroll) => SingleChildScrollView(
reverse: true,
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.bottom),
controller: scroll,
child: Column(
children: <Widget>[
TextFormField(
decoration: InputDecoration(),
),
TextFormField(
decoration: InputDecoration(),
),
TextFormField(
decoration: InputDecoration(),
),
],
),
))