I created two forms, and added them to a PageView. Each form has 6 TextFormField. When I tap on the last 2 TextFormField, the keyboard shows up over these fields and hides them.
I have tested this to work.
class SO extends StatefulWidget {
@override
_SOState createState() => _SOState();
}
class _SOState extends State<SO> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(""),
),
body: PageView(
children: <Widget>[
_sampleForm("Page 1"),
_sampleForm("Page 2"),
],
),
);
}
_sampleForm(String title) {
return SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(32.0),
child: Column(
children: <Widget>[
Form(
child: Column(
children: <Widget>[
ListTile(title: Text(title, textAlign: TextAlign.center)),
for (int i = 0; i < 10; i++) TextFormField(decoration: InputDecoration(hintText: "field ${i+1}"),),
],
),
),
],
),
),
);
}
}
Just some extra padding to show the content is what you need.