-
Notifications
You must be signed in to change notification settings - Fork 38
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: modifiers in spec #333
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
DCM report❌ warning issues: 1 Full report: https://github.com/conceptadev/mix/runs/26769029694 |
1c3a165
to
41cbb5b
Compare
packages/mix/lib/src/attributes/modifiers/widget_modifiers_util.dart
Outdated
Show resolved
Hide resolved
@@ -50,28 +51,32 @@ class IconSpecWidget extends StatelessWidget { | |||
this.semanticLabel, | |||
super.key, | |||
this.textDirection, | |||
this.modifierOrder = const [], | |||
this.orderOfModifiers = const [], | |||
}); | |||
|
|||
final IconData? icon; | |||
final IconSpec? spec; |
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.
For the Widget spec, all of them follow the same basic structure, a spec attribute with some Spec
and an attribute called orderOfModifiers. What if we create an abstract class SpecWidget
?
@leoafarias do you think we should create a document for this migration now? |
Related issue
#313
Description
Add the ability to set modifiers in specs.
Changes
Spec
;Spec
instead ofAttribute
;RenderModifiers
;Review Checklist
Additional Information (optional)
I tried not to create breaking changes, let me know if you have any doubts about some modifications.