Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

leading in flutter(drawer)

AppBar(
  leading: Builder(
    builder: (BuildContext context) {
      return IconButton(
        icon: const Icon(Icons.menu),
        onPressed: () { Scaffold.of(context).openDrawer(); },
        tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip,
      );
    },
  ),
)
Source by api.flutter.dev #
 
PREVIOUS NEXT
Tagged: #leading
ADD COMMENT
Topic
Name
5+8 =