button back flutter color appbar code example

Example 1: how to change the color of the back button in app bar flutter

appBar: AppBar(
  iconTheme: IconThemeData(
    color: Colors.black, //change your color here
  ),
  title: Text("Sample"),
  centerTitle: true,
),

Example 2: flutter app bar action button color

actions: [
          Container(
            margin: EdgeInsets.all(4.0),
            decoration: BoxDecoration(
              color: Theme.of(context).canvasColor,
              shape: BoxShape.circle,
            ),
            child: IconButton(
              //shape: CircleBorder(),
              color: Theme.of(context).canvasColor,
              icon: FaIcon(FontAwesomeIcons.bars, size: 20, color: themeOrangeColor),
              //child: FaIcon(FontAwesomeIcons.bars, size: 20, color: themeOrangeColor),
              onPressed: () => Scaffold.of(context).openEndDrawer(),
            ),
          )

Tags:

Misc Example