I have used SingleChildScrollView in many places of my app and everything is fine. However, it cannot scroll to the bottom of the column when the keyboard pops up in the scenario below.
Future<void> _showCupertinoModalBottomSheet() async {
final Size screenSize = MediaQuery.of(context).size;
await showCupertinoModalPopup(
context: context,
builder: (BuildContext context) {
return Container(
height: screenSize.height * 0.8,
color: CupertinoColors.white,
child: Column(
children: <Widget>[
CupertinoTextField(
),
Expanded(
child: SingleChildScrollView(
child: Column(
children: <Widget>[
//List of widgets
],
),
),
),
],
),
);
});
}
I have no idea why it is scrollable but cannot scroll to the bottom, and some contents are hidden by the keyboard.
Any help is appreciated!