Cookbook
Choose a recipe by the behavior you want to add.
| Task | Recipe |
|---|---|
| Validate editable text and show an error | Forms |
| Load data and display loading, error, and retry states | Async |
| Share colors and styling through the view tree | Themes |
| Animate a value over time | Animation |
| Exercise a view without opening a window | Testing |
For typed navigation, root an app in MaterialApp::router (or WidgetsApp::router) over a
#[derive(Routable)] route
enum; its pages push and pop route values through a RouterHandle (ADR-0330; see the
mapping notes).