• Michael Goderbauer's avatar
    getOffsetToReveal deals with pinned slivers (#11878) · 30fd06f7
    Michael Goderbauer authored
    * getOffsetToReveal deals with pinned slivers
    
    If a Sliver can potentially be pinned at the edge of a viewport, getOffsetToReveal will take that into account and scroll further up/down to ensure that the object to reveal doesn't end up covered by a pinned sliver.
    
    This is important for accessibility scrolling with app bars.
    
    Since how much a pinned sliver is covering is dynamic (it can change with scroll offset, etc), getOffsetToReveal deals with the worst case and tries to ensure that the object to uncover is visible when the pinned slivers are at their max pinned extent.
    
    * name fixes
    
    * review feedback
    
    * typos
    
    * renaming
    
    * fix analyzer
    
    * fix test
    
    * analyzer fixes
    30fd06f7
sliver_persistent_header.dart 21.1 KB