Search code snippets, questions, articles... Chrome Extension

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
        ),
    ),
)
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

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

Leading icon action in Flutter
Was this helpful?
0 Comments
Join Devsheet Ask a Question