Remember: Screens are just widgets.
In this example, create a list of todos.
When a todo is tapped, navigate to a new screen (widget) that
displays information about the todo.
This recipe uses the following steps:

Define a todo class.

Display a list of todos.

Create a detail screen that can display information about a todo.

Navigate and pass data to the detail screen.

1. Define a todo class

First, you need a simple way to represent todos. For this example,
create a class that contains two pieces of data: the title and description.

2. Create a list of todos

Second, display a list of todos. In this example, generate
20 todos and show them using a ListView.
For more information on working with lists,
see the Use lists recipe.

Generate the list of todos

Display the list of todos using a ListView