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
Reland Refactored ListTileTheme: ListTileThemeData, ThemeData.listThemeData #91840
Reland Refactored ListTileTheme: ListTileThemeData, ThemeData.listThemeData #91840
Conversation
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
@HansMuller @Piinks I'm curious if Dart fix supports this kind of change? |
@guidezpl - I'm assuming that class renames are supported, so in this case ListTileTheme => ListTileThemeData. |
Yes, that's right. The old constructor still works however a complete upgrade would require the transformation you've shown. I don't know if Dart Fix can do that. @bwilkerson - is this possible? Foo(a: b, c: d) => Bar(data: BarData(a: b, c: d)) |
Hey all, thanks for thinking of this! I do not believe this is supported right now. Dart fixes work within a class right now, not across them. There is a feature request for this though in dart-lang/sdk#45393 The Overall, this does seem like something that really should have a migration guide, are you going to make one @HansMuller? |
Reland #91449
Fixed a typo in the
ListTileTheme.data
getter that caused an internal test to fail. Added a regression test.