in flutter and my application i'm trying to change some FlatButton text colors without using ThemeData, because in some part of application i want to have button with white text color or red,
how can i set this text colors normally?
for example:
FlatButton(
color: Colors.black,
textColor: Colors.white,
child: Text(
'login'
),
onPressed: () {}
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(50.0))),
FlatButton(
color: Colors.yellow,
textColor: Colors.red,
child: Text(
'login'
),
onPressed: () {}
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(50.0))),
FlatButton(
color: Colors.white,
textColor: Colors.green,
child: Text(
'login'
),
onPressed: () {}
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(50.0))),
color: Colors.yellow, textColor: Colors.red,- pskinkFlatButton( onPressed: () {}, textColor: Colors.red, child: Text('foo', textScaleFactor: 3.0,), ),works just fine - pskink