How could i add divider to list? I use flatter for android. I want to add a divider between each line and I want to colorize the divider and add styles.
I tried to
The most correct way is to use ListView.separated
ListView.separated( itemCount: 25, separatorBuilder: (BuildContext context, int index) => Divider(height: 1), itemBuilder: (BuildContext context, int index) { return ListTile( title: Text('item $index'), ); }, );