3. Populate the drawer with items

Now that you have a Drawer in place, add content to it.
For this example, use a ListView.
While you could use a Column widget,
ListView is handy because it allows users to scroll
through the drawer if the
content takes more space than the screen supports.

Populate the ListView with a DrawerHeader
and two ListTile widgets.
For more information on working with Lists,
see the list recipes.

4. Close the drawer programmatically

After a user taps an item, you might want to close the drawer.
You can do this by using the Navigator.

When a user opens the drawer, Flutter adds the drawer to the navigation
stack. Therefore, to close the drawer, call Navigator.pop(context).

Interactive example

Fade a widget in and out

Display a snackbar