1
Good morning Personal!
I’m learning Flutter
, and found a problem to build this model of the following image:
Row(children: [
Stack(children: [
Container(
width: 400.0,
height: 200.0,
decoration: BoxDecoration(
color: Colors.black12,
),
child: Row(
children: [
Padding(
padding: const EdgeInsets.all(5.0),
child: Image.network(
'https://cdn.awsli.com.br/600x450/44/44273/produto/29984101/9437f2984e.jpg',
width: 180,
),
),
Positioned(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Camiseta"),
Text("Roupas"),
Text("R\$25,00"),
],
),
),
Positioned(
child: FloatingActionButton(
foregroundColor: Colors.white,
backgroundColor: Colors.red[600],
child: Icon(Icons.plus_one), onPressed: () {},
),
),
],
),
),
])
])
In my result, even putting the properties in Pisitioned widgets, I can not leave the texts and buttons where I would like. Follow my resuldado:
I couldn’t run your example. I think it’s the
MediaQuery
that are incorrect.– rbz
Maybe because of the context, I did it in a Statefullwidget but if it’s Statelesswidget for having to go through parameter
– GabrielLocalhost