ListView.separated is a handy API that we can use to add separators between items inside a Flutter ListView.
According to the documentation:
Separators only appear between list items: separator 0 appears after item 0 and the last separator appears before the last item.
This means that there are no separators above the first item, and below the last item.
This is visually noticeable on iOS, where lists can over-scroll by default.
sponsor
Build Privacy-First Flutter apps with the @platform. Our Open Source platform, which is built on Dart, gives people control over their own data. Automatically comply with GDPR [and other privacy regulations], earn commissions as you grow, and make apps super fast no backend infrastructure needed.
Here's some code to set things straight, and add top and bottom separators to your ListViews:
You're welcome.