I am having problem while changing the color of text and icon widgets on appbar in flutter.
I have tried theme inside the material app but it's not working.
where this is working : title: Text('Profile', style: TextStyle(color: Colors.black)),
But I want to apply this for all appbars. So where should I make changes in material theme.
MaterialApp(
title: "My App",
theme: ThemeData(
appBarTheme: AppBarTheme(
backgroundColor: Color(0xffFCD581),
brightness: Brightness.dark,
),
how can i change the color of text: profile and icon . globally.
setting color of headline6 to Colors.black works. but it's also making the title text smaller. I can set the fontsize in headline6 and it reflects universally.
But I think the default size of title that we get with appbar is suitable enough. So is there any solution that will only change the color of the appbar text, title without affecting the fontsize.

