Estou enfrentando um problema com a navegação entre telas no meu app, as telas estão iniciando em full screen e não consigo deixar ela normal.
Como chamo a navegação
void onDonePress() {
// Do what you want
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => RegisterUser()),
);
}
Codigo da tela que fica em full screen
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
padding: EdgeInsets.all(10.0),
child: Column(
children: <Widget>[
Image.asset(
'images/logo.jpg',
height: 200.0,
width: 180.0,
),
Padding(
padding: EdgeInsets.only(
top: 10.0, bottom: 10.0, left: 16.0, right: 16.0),
child: Text(
"O que é Lorem Ipsum? Lorem Ipsum é simplesmente uma simulação de texto da indústria tipográfica e de impressos",
textAlign: TextAlign.center,),
),
Padding(
padding: EdgeInsets.only(
top: 10.0, bottom: 10.0, left: 16.0, right: 16.0),
child: Column(
children: <Widget>[
TextField(
decoration: new InputDecoration(
labelText: "CPF",
fillColor: Colors.white,
border: new OutlineInputBorder(
borderRadius: new BorderRadius.circular(25.0),
borderSide: new BorderSide(),
),
//fillColor: Colors.green
),
keyboardType: TextInputType.number,
),
],
)
),
Padding(
padding: EdgeInsets.only(
top: 10.0, bottom: 10.0, left: 16.0, right: 16.0),
child: TextField(
decoration: new InputDecoration(
labelText: "Usuario",
fillColor: Colors.white,
border: new OutlineInputBorder(
borderRadius: new BorderRadius.circular(25.0),
borderSide: new BorderSide(),
),
//fillColor: Colors.green
),
keyboardType: TextInputType.number,
),
),
Padding(
padding: EdgeInsets.only(
top: 10.0, bottom: 10.0, left: 16.0, right: 16.0),
child: TextField(
decoration: new InputDecoration(
labelText: "Tel",
fillColor: Colors.white,
border: new OutlineInputBorder(
borderRadius: new BorderRadius.circular(25.0),
borderSide: new BorderSide(),
),
//fillColor: Colors.green
),
keyboardType: TextInputType.number,
),
),
Padding(
padding: EdgeInsets.only(
top: 10.0, bottom: 10.0, left: 16.0, right: 16.0),
child: TextField(
decoration: new InputDecoration(
labelText: "Tel",
fillColor: Colors.white,
border: new OutlineInputBorder(
borderRadius: new BorderRadius.circular(25.0),
borderSide: new BorderSide(),
),
//fillColor: Colors.green
),
keyboardType: TextInputType.number,
),
)
],
),
),
);
}
SystemChrome.setEnabledSystemUIOverlays([])
esse pode ser o problema. – Matheus Ribeiro 24/06/20 às 13:41