Flutter: How to Split Background Into 2 Colors with ListView.separated
Feb 10, 2023
In this article, I would like to show you how to split the background into two colors with ListView.separated constructor.
ListView.separated() creates a fixed-length scrollable linear array of list “items” separated by list item “separators”.
Divider widget to create separators.
Inside the Scaffold widget, add the backgroundColor property and assign the color as below;
My YouTube Channel;
If you find this useful, please don’t forget to clap 👏 and follow me. I will continue according to your request.