Repository navigation
Fix infinite loop in CupertinoSliverNavigationBar collapse animation by adding bounds check for target scroll position - #170210
Conversation
…by adding bounds check for target scroll position
…ionBar collapse animation
|
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. |
|
@victorsanni, could you please take a look at this once you have a chance? 🙏 I'm not really sure why the Mac_arm64 and Mac_x64 "tool_test_commands" tests are failing. 🤷 |
victorsanni
left a comment
There was a problem hiding this comment.
LGTM with a nit. Thanks for the fix.
Co-authored-by: Victor Sanni <victorsanniay@gmail.com>
…animation-infinite-loop
…animation-infinite-loop
…animation-infinite-loop
…animation-infinite-loop
…animation-infinite-loop
…animation-infinite-loop
…animation-infinite-loop
|
@MitchellGoodwin @victorsanni how likely is it for this fix to make it into a CP? |
…animation-infinite-loop
…animation-infinite-loop
Very unlikely. While it's not a new feature, it's also not a crash or something that severely breaks customers. |
I see. I was under the impression that #164458 was labelled as a P2 because it has a particularly severe impact on Android. |
…animation-infinite-loop
…animation-infinite-loop
…animation-infinite-loop
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…by adding bounds check for target scroll position (flutter#170210) This pull request includes a fix to the `CupertinoSliverNavigationBarState` class in the `nav_bar.dart` file. The change ensures that the `animateTo` method is only called when the `target` is within the valid scroll extent range, i.e. `target <= position.maxScrollExtent`. Fixes flutter#164458 ## 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 `///`). - [x] 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. --------- Co-authored-by: Victor Sanni <victorsanniay@gmail.com>
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…imation by adding bounds check for target scroll position (flutter/flutter#170210)
…by adding bounds check for target scroll position (flutter#170210) This pull request includes a fix to the `CupertinoSliverNavigationBarState` class in the `nav_bar.dart` file. The change ensures that the `animateTo` method is only called when the `target` is within the valid scroll extent range, i.e. `target <= position.maxScrollExtent`. Fixes flutter#164458 ## 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 `///`). - [x] 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. --------- Co-authored-by: Victor Sanni <victorsanniay@gmail.com>
This pull request includes a fix to the
CupertinoSliverNavigationBarStateclass in thenav_bar.dartfile. The change ensures that theanimateTomethod is only called when thetargetis within the valid scroll extent range, i.e.target <= position.maxScrollExtent.Fixes #164458
Pre-launch Checklist
///).