In my root file I have:
theme: ThemeData(
appBarTheme: AppBarTheme(
textTheme: TextTheme(
button: TextStyle(color: Colors.white),
),
),
),
and in my custom AppBar file:
return AppBar(
automaticallyImplyLeading: false,
backgroundColor: Colors.transparent,
actions: <Widget>[
TextButton(
child: Text('Sign in'),
onPressed: () {},
),
],
);
but the text remains the default light blue-ish color.