Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change button text colour once set the icon #6

Open
howej opened this issue Jun 26, 2020 · 1 comment
Open

Cannot change button text colour once set the icon #6

howej opened this issue Jun 26, 2020 · 1 comment

Comments

@howej
Copy link

howej commented Jun 26, 2020

@override Widget build(BuildContext context) { return icon == null ? FlatButton( onPressed: onPressed, child: Text( title, style: TextStyle( color: color, ), ), ) : FlatButton.icon( onPressed: onPressed, label: Text( title, ), icon: Icon( icon, color: color, ), ); }

TextStyle is missing once set the icon, please kindly add it to the FlatButton if icon != null
style: TextStyle( color: color, )

@CorneilleEdi
Copy link
Owner

thanks. I will work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants