-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Reset missing deprecation for ScrollbarThemeData.copyWith(showTrackOnHover) #111706
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
| // Changes made in https://github.com/flutter/flutter/pull/111706 | ||
| Scrollbar scrollbar = Scrollbar(trackVisibility: true); | ||
| bool nowShowing = scrollbar.trackVisibility; | ||
| ScrollbarThemeData scrollbarTheme = ScrollbarThemeData(trackVisibility: nowShowing); |
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.
trackVisibility in ScrollbarThemeData is type of MaterialStateProperty<bool?>?, can this fix works well?
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.
Yeah, it's not a 100% fix, but we did the same transformation for isAlwaysShown ➡️ thumbVisibility.
In general, if we can point folks in the right direction, I think it's helpful. :)
xu-baolin
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
Found this while completing an audit for the next batch of deprecations to be removed from the framework.
Scrollbar and ScrollbarThemeData showTrackOnHover is deprecated, but the later .copyWith was not notated for it. This adds the deprecation notation and resets the clock for the bunch.
It also adds a dart fix for this deprecation.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.