In this part, we would focus on creating immutable value types and serializing our JSON with built value. We would also set up our application to use scope model to manage its state.
In this series, we would be building a property listings app using flutter.
What you would learn:
JSON serialization using built_value
State management using scoped_model
Transforming JSON during decoding
Infinite scrolling list
How to use Slivers
Creating reusable UI widgets
Building beautiful UIs
and lots more
Source code: https://github.com/fleepgeek/flutter-...
The data would be retrieved from the nestoria api : https://nestoria.co.uk
ADDITIONAL NOTES
I gave a silly at 05:22 explanation. It is not a dart 2.1 issue. Variables that are being initialized by a constructor parameter can't be private because they are going to get their values from outside the declared class.
At 07:55, the reason the CircularProgressIndicator still shows is because we are calling the model.getProperties() directly so it executes the function. To solve this, we remove the () so that we are just passing the function to the SearchWidget and not calling it. It would be called in the onSubmitted function in SearchWidget. More explanation at 11:23.
Audio goes mute at 41:53, comes back at 42:13