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.

Share:
169
Arbaz Adam
Author by

Arbaz Adam

Updated on December 26, 2022

Comments

  • Arbaz Adam
    Arbaz Adam over 1 year

    I am trying to replicate this.

    This is the the sample image

    • AmitB10
      AmitB10 over 3 years
      Use "leading" propery of appBar.
  • Arbaz Adam
    Arbaz Adam over 3 years
    Thanks for your prompt response Vinay, it helped