How to Change Drawer Icon in Flutter

Nur Özkaya
Feb 10, 2021

You should use MaterialLocalizations :

Widget build(context) {
return AppBar(
leading: Builder(
builder: (BuildContext context) {
return IconButton(
icon: const Icon(Icons.menu),
onPressed: () {
Scaffold.of(context).openDrawer();
},
tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip,
);
},
),
);
}

Thank you for reading. Follow for more.

--

--