In this part, we would create the detail screen for a property listing.
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
From 39:49 to 41:29 i gave a crappy explanation of @memoized annotation. Here is the correct explanation:
Annotating a field with @memoized returns a cached result of a function call when inputs were not changed from previous invocation.
So in our use-case, "keywordList" would return the cached (in built_value, the result is stored in a hidden field on the instance) result if the "keywords" field's value (or calculation result) doesn't change. This means that the original function would be called only once if its calculated results doesn't change.