The flutter drawer development tutorial describes how to add a drawer to a flutter application.
The scaffold widget provides a drawer property. This will be used to provide a list of tiles.
This flutter development tutorial follows on from the popup menu flutter tutorial.
Knowledge of the dart programming language is not required, but the experience of an object orientated programming language is recommended. Such as Java, C++, Kotlin, Swift to name a few.
In this flutter development tutorial we will cover:
- Creating a drawer widget
- Utilizing the Scaffold drawer property
- Providing interactivity to the drawer
- How to close the drawer
In this flutter development tutorial, we described how to add a drawer to a flutter application.
Conveniently the scaffold widget provides a drawer property. Which will be used to provide the drawer widget to.
A constructor is used to create the drawer widget. With a ListView of ListTile supplied.
To add interactivity to the drawer, the onTap property is implemented in the ListTiles. As well the loading the specify Stateless widget, the close drawer is also called.
In the following flutter development tutorial, we will describe how to use the BottomNavigationBar to navigate between images.