Cookbook
This cookbook contains recipes that demonstrate how to solve common problems while writing Flutter apps. Each recipe is self-contained and can be used as a reference to help you build up an application.
Design basics
- Using Themes to share colors and font styles
- Displaying SnackBars
- Working with Tabs
- Using custom fonts
- Exporting fonts from a package
- Add a Drawer to a screen
- Updating the UI based on orientation
Images
Lists
- Create a basic list
- Make a horizontal list
- Working with long lists
- Creating lists with different types of items
- Creating a grid List
Handling Gestures
Navigation
- Navigate to a new screen and back
- Send data to a new screen
- Return data from a screen
- Navigate with named routes
- Animating a Widget across screens
Animation
Networking
- Fetch data from the internet
- Making authenticated requests
- Working with WebSockets
- Parsing JSON in the background
Persistence
Forms
- Create and style a text field
- Retrieve the value of a text field
- Handling changes to a text field
- Focus a text field
- Building a form with validation