Posts tagged Flutter
ValueListenableBuilder
A note that Flutter's ValueListenableBuilder rebuilds only the widget whose value changed.
Overriding hash for Your Own Objects
Shows how to override == and hashCode in Dart.
addPostFrameCallback
A link to a post explaining Flutter's addPostFrameCallback.
Difference Between void async and Future<void> async
Why Future<void> is usually preferred over void for async functions in Dart.
Refreshing After Navigator pop
Code that calls setState after Navigator.push returns to refresh the screen.
Why ListView and Similar Widgets Don't Show Up
Why a ListView inside a Column or Row doesn't show, and fixing it with Expanded.
How setState Works
A link to a video on what to watch out for when using Flutter's setState.
What Context.mounted Means
What the mounted property means in a Flutter State.
FutureBuilder
How the future and builder arguments of Flutter's FutureBuilder work.
Adding a Project with the Firebase CLI
A link to a video on adding a Flutter project with the Firebase CLI
Lazy Initialization
How Dart's late keyword delays initialization until a variable is first used.
Null safety
Why Dart has null safety, and how nullable types, !, required, and late work.
Understanding async method code
Why calling an async method without await prints an empty Future in Dart.
How future and await code runs
Step-by-step order in which Dart Futures and async/await code run.
Tree
Flutter's Widget, Element, and Render trees and how updates work