Switched each color-related interface's type from the str or String to Color (v4.0.0)
#974
simon-ritchie
announced in
Destructive changes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since version 4.0.0, each color-related interface (for instance,
fill_color,line_color, and so on) has been switched from thestrorStringto the newly addedColorclass.Previous code example:
New version code example:
This change increases type checkings' robustness (inspired by Flutter).
For more details, please see the following documents:
Beta Was this translation helpful? Give feedback.
All reactions