Search code examples
flutterlistview

Can I add a badge to a Flutter ListTile that is not the leading or trailing widget?


enter image description here

I have a list in my flutter app which uses ListView.builder, similar to the picture above. I am able to add a leading widget and trailing widget.

What I want to do is add an additional badge such as the ones in the picture. Is this possible with ListTiles? Or is there another way of doing it?


Solution

  • Please modify this code.

    ListTile(
                   leading: Icon(Icons.add),
                   title: Text('John judah',),
                   trailing: Row(children: [
                   Icon(Icons.star),
                   Icon(Icons.right),
                    ],),
                ),