Flutter: How to Split Background Into 2 Colors with ListView.separated

--

In this article, I would like to show you how to split the background into two colors with ListView.separated constructor.

ListView.separated-different-background-color

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.

--

--

Yusuf Biberoğlu
Yusuf Biberoğlu

Written by Yusuf Biberoğlu

Software Developer 💻 (PHP-Symfony, Flutter, Dart, Firebase) https://www.linkedin.com/in/yusufbiberoglu/

No responses yet