Search code snippets, questions, articles...

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
        ),
    ),
)

Search Index Data (The code snippet can also be found with below search text)

Leading icon action in Flutter
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet