Return data from a screen

Delete data on the internet

Send data to a new screen

Cookbook

Navigation

Send data to a new screen

1. Define a todo class

2. Create a list of todos

Generate the list of todos
Display the list of todos using a ListView

3. Create a Todo screen to display the list

4. Create a detail screen to display information about a todo

5. Navigate and pass data to the detail screen

Interactive example

Alternatively, pass the arguments using RouteSettings

Create a detail screen to extract the arguments
Navigate and pass the arguments to the detail screen
Complete example

Often, you not only want to navigate to a new screen,
but also pass data to the screen as well.
For example, you might want to pass information about
the item that’s been tapped.