I'd need to build a content widget with the red circle over the text content in Flutter, how can I do?
Asked
Active
Viewed 1,400 times
-3

Pimpi Rimpà
- 75
- 1
- 8
-
Please show us what you've tried so that we can be able to get your concept – Davis Aug 16 '22 at 12:51
-
I had to add the snipped code here for the widget https://codeshare.io/j0EJM3 – Pimpi Rimpà Aug 16 '22 at 12:52
1 Answers
2
you can do it using stack
widget
return Scaffold(
body: Center(
child: Container(
width: 450,
height: 200,
color: Colors.white,
child: Stack(
children: [
Align(
alignment: Alignment.center,
child: Container(
width: 400,
height: 150,
decoration: BoxDecoration(
color: Colors.blue,
borderRadius:BorderRadius.circular(20)
),
),
),
Align(
alignment: Alignment.topRight,
child: Container(
width: 100,
height: 100,
decoration: BoxDecoration(
color: Colors.red,
shape: BoxShape.circle
),
),
),
],
),
),
),
);

Jaydeep chatrola
- 2,423
- 11
- 17