How do I replace the hamburger icon of a drawer with a CircleAvatar in Flutter?
169
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title:Text('hi'),
leading: IconButton(
icon: Icon(Icons.accessible),
onPressed: () => Scaffold.of(context).openDrawer(),
),
),
);
There you go.. I will work.
Author by
Arbaz Adam
Updated on December 26, 2022Comments
-
Arbaz Adam over 1 year
-
AmitB10 over 3 yearsUse "leading" propery of appBar.
-
-
Arbaz Adam over 3 yearsThanks for your prompt response Vinay, it helped