I cannot figure out how to change the appBar's automatic back button to a different color. it's under a scaffold and I've tried to research it but I can't wrap my head around it.
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.white,
title: Image.asset(
'images/.jpg',
fit: BoxFit.fill,
),
centerTitle: true,
),
Best Answer
You have to use the
iconTheme
property from the AppBar , like this:Or if you want to handle the back button by yourself.
Even better, only if you want to change the color of the back button.