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

Change the color of icons in appbar flutter

Scaffold(
  appBar: AppBar(
    iconTheme: IconThemeData(
      color: Color(0xffFF0000), //OR Colors.red or whatever you want
    ),
    title: Text("Title"),
    backgroundColor: Color(0xffFAFAFA),
  ),
)
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

You can use 'iconTheme' property of appBar to change the color of its icons. It will change the color of all icons that are showing in your appBar.

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

Change back icon button color scaffold appbar in Flutter
Was this helpful?
0 Comments
Join Devsheet Ask a Question