flutter

Change click action of left AppBar icon in Flutter

You can change the click action of the left icon in the Flutter AppBar using the leading property of AppBar.

AppBar(
    title: Text("App Header"),
    leading: GestureDetector(
        onTap: () { print("Hello click"); },
        child: Icon(
            Icons.menu, //Change icon here
        ),
    ),
)
Was this helpful?