xxxxxxxxxx
iconTheme: IconThemeData(
color: Colors.black, // <= You can change your color here.
),
xxxxxxxxxx
CircleAvatar(
radius: 30,
backgroundColor: Colors.greenAccent, //<-- SEE HERE
child: IconButton(
icon: Icon(
Icons.flight,
color: Colors.black,
),
onPressed: () {},
),
)
xxxxxxxxxx
appBar: AppBar(
leading: GestureDetector(
child: Icon(
Icons.arrow_back_ios,
color: Colors.black,
),
onTap: () {
Navigator.pop(context);
},
),
),
xxxxxxxxxx
class SomeState extends State<StatefulWidget> {
Color _iconColor = Colors.white;
@override
Widget build(BuildContext) {
return ListTile(
leading: new IconButton(
icon: Icon(Icons.star, color: _iconColor),
onPressed: () {
setState(() {
_iconColor = Colors.yellow;
});
},
);
}
}