I got the similar problem inside scrollable widget, the solution is to wrap your widget with Padding
like that:
@override
Widget build(BuildContext context) {
final bottom = MediaQuery.of(context).viewInsets.bottom;
return SingleChildScrollView(
controller: widget.controller,
child: Padding(
padding: EdgeInsets.only(bottom: bottom),
child: YourWidgetWithTextFields()
);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…