-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Refactor: Move Slider and RangeSlider components to slider_parts.dart and range_slider_parts.dart #165361
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
|
It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
58b368e to
bc7f4b5
Compare
|
@rkishan516 Maybe you're still working on it but make sure to add some tests. Thank you! (from triage) |
@dkwingsmt This PR is just migrating code into separate file. So, don't need any test. |
|
I see! Sorry for the confusion. @TahaTesser Can you take a look if this is what you asked for? If it is then we can approve this since it seems a trivial change. |
|
@rkishan516 @dkwingsmt we still need to follow the process the bot provided to get test exemption. @rkishan516 can you follow the instructions to reach out on Discord to the right folks? |
Sure. |
bc7f4b5 to
daec028
Compare
|
Also @dkwingsmt & @Piinks, Rather than creating multiple PRs, I have pushed all changes in this single PR but with multiple commits. Thoughts ? |
|
Yeah, I think for a trivial refactor like moving code doing it together should be preferred. Thanks! |
|
test-exempt: code refactor with no semantic change |
This looks good! Just have to make sure nothing is missed when moving the code as it is hard to verify every single line is correctly moved. |
Hey @rkishan516 as we discussed in #162858, it is preferred to break this up into smaller changes so we can review and land it more easily. Regressions are easy to introduce in large code moves like this. #162858 landed after reducing to a smaller segment of moves. Can we continue that as planned? |
@Piinks So that review become easy, I have divided that into commits which can be reviewed easily. But if still required i can change this back. Should i ? |
adccf69 to
609b807
Compare
609b807 to
35c8661
Compare
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've verified that the code are moved verbatim (by copying everything back and check git diff).
I'll leave @Piinks to confirm that this is the desired movement.
Piinks
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
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
… and range_slider_parts.dart (flutter#165361) Refactor: Move Slider and RangeSlider components to slider_parts.dart and range_slider_parts.dart fixes: flutter#162510 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
…rts.dart and range_slider_parts.dart (flutter/flutter#165361)
Refactor: Move Slider and RangeSlider components to slider_parts.dart and range_slider_parts.dart
fixes: #162510
Pre-launch Checklist
///).