Example layout
@override
Widget build(BuildContext context) {
return Scaffold(
resizeToAvoidBottomPadding: true,
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
TextField(),
TextField(),
TextField(),
TextField(),
TextField(),
TextField(),
Text('end'),
TextField(),
],
),
),
),
);
}
Note for Android.
- Dont put
<item name= "android:windowFullscreen">true</item>
in tomain/src/res/values/sytles.xml
LaunchTheme. Just keep origin version
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>
- For full screen at splash use this approach: https://www.nhancv.com/2019/10/flutter-splash-screen.html