-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add Card.filled and Card.outlined factory methods
#136229
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
Conversation
HansMuller
left a comment
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.
LGTM modulo a nit about the 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.
We should really encourage factoring into widgets rather than build methods. A _SampleCard widget with a const constructor would do the job here.
c997433 to
9ac06b3
Compare
Fixes #119401
This PR is to:
Card.filledandCard.outlinedfactory methods so that we can use tokens for these two types of cards to generate default theme instead of providing hard-corded values in example.Pre-launch Checklist
///).