0
Hi, I have to put an online symbol inside an image, but I don’t know how to do it, I want something like :
All I could do was:
As I pass this green ball to image, as in the example up there, my code:
Widget _itemListOnline(String texto, String imagem){
return Container(
padding: EdgeInsets.only(left: 30),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Row(
children: [
Container(
width: 70,
height: 70,
decoration: BoxDecoration(
shape: BoxShape.circle,
image: DecorationImage(
image: AssetImage("$imagem"),
),
),
),
Container( //Esse é o símbolo de online
width: 15,
height: 15,
decoration: BoxDecoration(
color: Color.fromRGBO(0, 255, 0, 1),
shape: BoxShape.circle,
),
),
],
),
Text("$texto")
],
),
);
}
Use the Widget
Stack
, follow @Julio’s reply.– Matheus Ribeiro
I advise you to stop at least 1h of your day to take a look at some basic Flutter Widgets. Watch this playlist with short videos Widget of the Week; Basic widgets
– Matheus Ribeiro