How to specify custom separator widget between ListView items?

Widgets & Design

Hi all, I am trying to add a horizontal divider between the items that are generated in my ListView widget, and I can't seem to figure out how to achieve this.

In traditional Flutter, you can have a ListView.separated() and specify your desired widget using the separatorBuilder parameter. I notice that when I specify an item spacing in FF that in the backend code, the ListView actually does become a ListView.separated() with a separatorBuilder: (_, __) => SizedBox(), so I was wondering if there is actually any way of modifying the separator builder to build something other than just a simple SizedBox()?

Would anyone be able to help advise? I am also open to explore if there are other ways of achieving the effect of a horizontal divider between my ListView items.

What have you tried so far?

I've tried experimenting around the different parameters of the ListView widget, and I've tried looking at the FF's documentation on ListView.

Did you check FlutterFlow's Documentation for this topic?
Yes
3
3 replies