FloatingActionButton backgroundColor defaults to accentColor, foregroundColor also to accentColor. #28138
Labels
f: material design
flutter/packages/flutter/material repository.
framework
flutter/packages/flutter repository. See also f: labels.
Steps to Reproduce
I don´t know if it´s my inability to understand all those "primary,accent,swatch,normal,..." color configurations, but i will try to explain what my problem is. I personally think it´s more like a bug or a missing feature than a question for stackoverflow.
Try this code:
https://gist.github.com/erikkubica/45fc8acdce1f8a25cd5258e8b3a0e1f3
Or:
Both foreground and background defaults to accentColor.
I found similar issue with FlatButton in Dialog, by default color of text is accent color, which is yellow (on white background), if i override it to primary, it´s red, but I don´t want to have it red since the delete button next to it is red. So I need to set it to normal, so it´s black which is correct, but:
flat_button.dart:127
My theme:
In theory my FlatButton in the popup dialog should be black and or red. But it´s yellow the accent color.
Thank you, so far I am loving Flutter
The text was updated successfully, but these errors were encountered: