Flutter: How to add a divider in listView using ListView.separated Widget

Flutter: How to add a divider in listView using ListView.separated Widget

Hello Friends,

Every application contains a listing screen and a better user experience require adding a divider between list items.

So Flutter provides ListView.separated with the option to create a separate list row widget and divider widget.

ListView.separated to easily create list view items and dividers will show only between two items. It will not show before the first item and after the last item.

image.png

Result

Screenshot_1661775345.png

Thanks for reading my post. Let me know your feedback and suggestions in the comments.