-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: add theme extensions #203
Conversation
: _generateMaterialColor(); | ||
|
||
MaterialColor _generateMaterialColor() => MaterialColor(value, { | ||
50: _tintColor(0.9), |
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.
shouldn't this be shade instead of tint? whats the difference?
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.
The difference it is the way of calculate tint and shade
final Color? warning; | ||
final Color? danger; | ||
|
||
static CustomColors getCustomColors() => const CustomColors( |
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.
Is this necessary, isn't it accessible by Theme.of(context).extension<MyColors>()!
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 we like to access the colors that way?
⭐ Feature
✏️ Description:
Add theme extensions of colors, typography and dimensions.