We've likely come across the ListView.separated(), which lets us add a separator to each item in List. But what if we want to have this similar behaviour in a row or column?
Yeah you can use that too in `[].separator(Divider())` The point is not what widget to use, its about how you use it in more readable,reusable and maintainable way.
would love to see more examples for generators as well and a few use cases where it would make more sense
Thanks. I'll try to cover this in upcoming post.
but...there is a Divider() widget
Yeah you can use that too in `[].separator(Divider())` The point is not what widget to use, its about how you use it in more readable,reusable and maintainable way.