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
Minor improvements to ThemeExtension example
#100693
Conversation
| @@ -18,7 +18,7 @@ class MyColors extends ThemeExtension<MyColors> { | |||
| final Color? red; | |||
|
|
|||
| @override | |||
| MyColors copyWith({Color? red, Color? blue}) { | |||
| MyColors copyWith({Color? blue, Color? red}) { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would firstColor and secondColor be more generic for this example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was meant to represent semantic colors, but you're right, I can change to something more meaningful like "caution" and "danger"
Noticed these small errors while writing more examples.
#31522