endDrawer Widget in Flutter Last Updated : 13 Nov, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report The endDrawer is the panel displayed to the side of the body (Scaffold Widget). It is generally hidden in mobile devices. We can open it by swiping in from right to left, or we can customise it to open on-press of an icon or a button. This widget is similar to the already present Drawer widget in flutter except for the fact the Drawer by default open from left-to-right and the endDrawer by default opens from right-to-left. However, this direction can be changed by using textDirection property. Constructor of Drawer class: Drawer({Key key, double elevation, Widget child, String semanticLabel})Properties of endDrawer :child: This property takes in a widget as a parameter to show below endDrawer widget in the tree.hashCode: This property takes an int as the parameter. The hash code represents the state of the object that effects operator== comparison.elevation: This property takes in a double value as a parameter to control the z-coordinate at which to place this drawer relative to its parent.semanticLabel: This property takes in a string value a the parameter to create the semantic label of the dialog used by accessibility frameworks to announce screen transitions when the drawer is opened and closed.Implementation with Example: main.dart Dart import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { // This widget is the // root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: MyHomePage(), debugShowCheckedModeBanner: false, ); } } class MyHomePage extends StatefulWidget { @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title:Text("GeeksforGeeks") , backgroundColor: Colors.green, ), endDrawer: Drawer( child: ListView.builder( itemBuilder: ( BuildContext context,int index){ return ListTile( leading:Icon(Icons.list), title: Text("GFG item $index"), trailing: Icon(Icons.done), ); }), //elevation: 20.0, //semanticLabel: 'endDrawer', ), ); } } Explanation:We create a Scaffold that contains an AppBar and Drawer.Let's add the endDrawer in our app. Child of Drawer is ListView.builder to build the list of items.Create a List of items as shown above in the code.Run the app and see the output. Output: Comment More infoAdvertise with us Next Article endDrawer Widget in Flutter S singh_teekam Follow Improve Article Tags : Dart Flutter Similar Reads Drawer Widget in Flutter Drawer widget is used to provide access to different destinations and functionalities provided in your application. It is represented by three horizontal parallel lines on the upper end of the scaffold. It has a horizontal movement from the edge of the Scaffold that navigates the link to different r 5 min read Expandable Widget in Flutter The expandable widgets do not have a fixed size, they expand on the screen according to the available areas on the screen. Due to size constraints, certain widgets can throw rendering errors, so widgets are made expandable. The one use of expandable widgets is cards that include images, texts, and t 3 min read Draggable Widget in Flutter In Flutter, a Draggable widget can be used to allow users to interact with a widget by dragging it around the screen. To create a Draggable widget, you can use the Draggable class and pass it to a child widget to be rendered, along with a feedback widget that will be displayed while the user is drag 4 min read Flow Widget in Flutter The Flow widget in Flutter is a layout widget that positions children's elements in a flow along with sizing and positions its children proficiently using FlowDelegate. It allows you to create a grid-like layout where the children are positioned according to a given alignment, and they flow from one 4 min read Flutter - Expanded Widget Expanded widget in flutter comes in handy when we want a child widget or children widgets to take all the available space along the main-axis (for Row the main axis is horizontal & vertical for Column). Â Expanded widget can be taken as the child of Row, Column, and Flex. And in case if we don't 5 min read Like