I would like to change the size of this widget (page), thank you very much!!!
Widget _mainContainer() {
return new Container(
child: new ListView(
children: <Widget>[
new Center(
child: new Column(
children: <Widget>[
_formContainer(),
],
),
),
],
));
}
It is a page in which I must implement many things, but ideally it should have a smaller size.
This is the main widget:
block quote
Widget build(BuildContext context) {
return new Scaffold(
key: globalKey,
backgroundColor: Colors.white,
body: new Stack(
children: <Widget>[_mainContainer(), progressDialogRegion],
));
}
What you can do is just use the widget
SizedBox
to define the size, but remember that you will see a black background in the back.If you are looking to use type windows
Dialog
, you can do it simply by usingshowDialog
and passing the widget with the predefined size, example: