endDrawer property

Widget? endDrawer

A panel displayed to the side of the body, often hidden on mobile devices. Swipes in from right-to-left (TextDirection.ltr) or left-to-right (TextDirection.rtl)

Typically a Drawer.

To open the drawer, use the ScaffoldState.openEndDrawer function.

To close the drawer, use either ScaffoldState.closeEndDrawer, Navigator.pop or press the escape key on the keyboard.

To disable the drawer edge swipe, set the Scaffold.endDrawerEnableOpenDragGesture to false. Then, use ScaffoldState.openEndDrawer to open the drawer and Navigator.pop to close it.

To create a local project with this code sample, run:
flutter create --sample=material.Scaffold.endDrawer.1 mysample


final Widget? endDrawer;