Skip to content

Conversation

HansMuller
Copy link
Contributor

@HansMuller HansMuller commented Oct 14, 2021

Reland #91449

Fixed a typo in the ListTileTheme.data getter that caused an internal test to fail. Added a regression test.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Oct 14, 2021
@google-cla google-cla bot added the cla: yes label Oct 14, 2021
Copy link
Contributor

@darrenaustin darrenaustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HansMuller HansMuller merged commit acab6dc into flutter:master Oct 14, 2021
@HansMuller HansMuller deleted the reland_list_tile_theme_data branch October 14, 2021 22:13
clocksmith pushed a commit to clocksmith/flutter that referenced this pull request Oct 29, 2021
@guidezpl
Copy link
Member

@HansMuller @Piinks I'm curious if Dart fix supports this kind of change?

@HansMuller
Copy link
Contributor Author

@guidezpl - I'm assuming that class renames are supported, so in this case ListTileTheme => ListTileThemeData.

@guidezpl
Copy link
Member

It's a bit more than that, right, with adding a constructor
Screen Shot 2021-11-17 at 17 40 46

@HansMuller
Copy link
Contributor Author

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))

@Piinks
Copy link
Contributor

Piinks commented Nov 17, 2021

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 TextSelectionThemeData ones seem similar, they were added in #78897, so it may be worth double checking.

Overall, this does seem like something that really should have a migration guide, are you going to make one @HansMuller?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants