Container(
child: Column(
children: [
Container(
height: 200.00,
width: 180.00,
decoration: const BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(10),
),
color: Color.fromRGBO(30, 41, 59, 1.000)),
),
],
),
),
2
Answers
You Need some Containers in a Stack Widget. To Create Distance between the Containers inside you can use a Padding Widget.
i got you bro, try this template i made for you, i know it can be hard doing this kinda of stuff in flutter when you know very little, take a look at it
}
Column buildBackground() {
return Column(
children: [
Expanded(
flex: 1,
child: Container(
decoration: BoxDecoration(
color: Colors.purple,
borderRadius: BorderRadius.only(
topLeft: getRadius(),
topRight: getRadius(),
),
),
),
),
Expanded(
flex: 3,
child: Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
bottomLeft: getRadius(),
bottomRight: getRadius(),
),
),
),
),
],
);
}
Radius getRadius() => const Radius.circular(5);
}