the form is out of the screen, on an iPhone se
the form is out of the screen, on an iPhone se.
cannot be scroll the form down.
@@ -146,6 +146,8 @@ class _MySettingsPage extends State<SettingsPage> {
),
body: Align(
alignment: Alignment(0, 0),
+ child: SingleChildScrollView(
+ padding: EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.start,
@@ -153,21 +155,24 @@ class _MySettingsPage extends State<SettingsPage> {
Column(
children: <Widget>[
Padding(
- padding: const EdgeInsets.fromLTRB(46.0, 18.0, 48.0, 0),
+ padding:
+ const EdgeInsets.fromLTRB(46.0, 18.0, 48.0, 0),
child: Align(
child: Text('DisplayName:'),
alignment: Alignment.centerLeft,
),
),
Padding(
- padding: const EdgeInsets.fromLTRB(48.0, 0.0, 48.0, 0),
+ padding:
+ const EdgeInsets.fromLTRB(48.0, 0.0, 48.0, 0),
child: TextField(
keyboardType: TextInputType.text,
textAlign: TextAlign.center,
decoration: InputDecoration(
contentPadding: EdgeInsets.all(10.0),
border: UnderlineInputBorder(
- borderSide: BorderSide(color: Colors.black12)),
+ borderSide:
+ BorderSide(color: Colors.black12)),
hintText: _displayName,
),
onChanged: (value) {
@@ -182,7 +187,8 @@ class _MySettingsPage extends State<SettingsPage> {
Column(
children: <Widget>[
Padding(
- padding: const EdgeInsets.fromLTRB(46.0, 18.0, 48.0, 0),
+ padding:
+ const EdgeInsets.fromLTRB(46.0, 18.0, 48.0, 0),
child: Align(
child: Text('Codec:'),
alignment: Alignment.centerLeft,
@@ -198,7 +204,8 @@ class _MySettingsPage extends State<SettingsPage> {
Column(
children: <Widget>[
Padding(
- padding: const EdgeInsets.fromLTRB(46.0, 18.0, 48.0, 0),
+ padding:
+ const EdgeInsets.fromLTRB(46.0, 18.0, 48.0, 0),
child: Align(
child: Text('Resolution:'),
alignment: Alignment.centerLeft,
@@ -214,7 +221,8 @@ class _MySettingsPage extends State<SettingsPage> {
Column(
children: <Widget>[
Padding(
- padding: const EdgeInsets.fromLTRB(46.0, 18.0, 48.0, 0),
+ padding:
+ const EdgeInsets.fromLTRB(46.0, 18.0, 48.0, 0),
child: Align(
child: Text('Bandwidth:'),
alignment: Alignment.centerLeft,
@@ -255,6 +263,7 @@ class _MySettingsPage extends State<SettingsPage> {
),
onTap: () => _handleSave(context),
)))
- ])));
+ ]),
+ )));
}
}
