• 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
page_view_test.dart 22.6 KB