1
I would like to know how to make a layout similar to the pictures below in flutter. I tried to use a container, but it did not fill the screen, when I used height: double.infity it disappeared from the screen. ` And if I leave the height fixed on other Vices it won’t be cool.
body: SingleChildScrollView(
child: Stack(
children: <Widget>[
SizedBox(height: 80,),
Container(
padding: EdgeInsets.all(10),
height: 800,
width: double.infinity,
color: Colors.transparent,
child: Container(
decoration: new BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: const Radius.circular(40.0),
topRight: const Radius.circular(40.0),
)),
child: Column(
children: <Widget>[
Text("Hu"),
],
)),
)
],
),
),
);
interesting, I come from the web, this Mediaquery and as if it were the window.screen in javascript?
– Jefferson Mello Olynyki
Guy can’t say for sure, I don’t know much about WEB, but from what I’ve seen in some research seems to be the same concept...
– Matheus Ribeiro
I understand, I’m going to take the test here of the example you gave me
– Jefferson Mello Olynyki
worked perfectly, thank you!
– Jefferson Mello Olynyki