Flutter: Displaying Dynamic Contents using ListView.builder(…)

Flutter: Displaying Dynamic Contents using ListView.builder

Daksh Gupta

--

Flutter is a mobile App SDK by Google which helps in creating modern mobile apps for iOS and Android using a single(almost) code base. It’s a new entrant in the cross platform mobile application development and unlike other frameworks like React Native, it doesn’t use JavaScript but DART as a Programming Language.

If you’re new to Flutter, It’s highly recommended to read my first post “Flutter: From Zero To Comfortable” to get a good sense of how Flutter widgets work. You may also read my other stories on Flutter to get an overall view of different type of flutter widgets

What is meant by Dynamic Contents?

Unless an app is very basic and created for learning purposes, it will always use dynamic data i.e. Contents of the screen will change based on user actions and/or with change in network data.

Most of the time, the dynamic behaviour is achieved by changing the contents that is being displayed in the body. Flutter provides ListView.builder which can be used to generate dynamic contents from external sources.

Using ListView.builder(…)

ListView.builder is a way of constructing the list where children’s (Widgets) are built on demand. However, instead of returning a static widget…

--

--

Daksh Gupta

🔹Software Product Development Consultant, Trainer, & Coach🔹 Tech Speaker & Content Creator 🔹 youtube.com/@Cognitive-Programmer 🔹 linkedin.com/in/iDaksh