• Jeff McGlynn's avatar
    PageView ballistics overshoot the page on some devices (#12884) · 473d75a6
    Jeff McGlynn authored
    * PageView ballistics overshoot the page on some devices
    
    On some devices, such as Cupertino “Plus”-sized devices, scrolling left on the first page of a PageView will overshoot the first page and land on the second page.
    
    The issue is that applyContentDimensions incorrectly detects a content size change due to a floating point comparison on certain screen sizes (18257.400000000005 vs 18257.4)
    
    To fix this, perform a nearEqual comparison in applyContentDimensions.
    
    * Apply style changes to nearEqual for code review feedback.
    473d75a6
Name
Last commit
Last update
..
src Loading commit data...
analysis_options_user.yaml Loading commit data...
animation.dart Loading commit data...
cupertino.dart Loading commit data...
foundation.dart Loading commit data...
gestures.dart Loading commit data...
material.dart Loading commit data...
painting.dart Loading commit data...
physics.dart Loading commit data...
rendering.dart Loading commit data...
scheduler.dart Loading commit data...
semantics.dart Loading commit data...
services.dart Loading commit data...
widgets.dart Loading commit data...