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.