CorneilleEdi/sweetsheet

Cannot change button text colour once set the icon

howej opened this issue · 1 comments

howej commented

@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, )

thanks. I will work on it