-
Notifications
You must be signed in to change notification settings - Fork 29.7k
MaterialStatesController should dispatch creation in constructor. #133826
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
chunhtai
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, just a minor question
| /// Creates a MaterialStatesController. | ||
| MaterialStatesController([Set<MaterialState>? value]) : super(<MaterialState>{...?value}); | ||
| MaterialStatesController([Set<MaterialState>? value]) : super(<MaterialState>{...?value}) { | ||
| if (kFlutterMemoryAllocationsEnabled) { |
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.
I thought super should have called this?
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.
hm, you are right
reverted. thank you!
This PR also updates other tests to use matcher.