• Hans Muller's avatar
    When the selected tab changes in a TabBar for which isScrollable:true, animate... · 6a17d180
    Hans Muller authored
    When the selected tab changes in a TabBar for which isScrollable:true, animate the selected tab to the center of the viewport, if that's possible.
    
    Added an optional duration: to Scrollable.scrollTo(newOffset, duration: d) which animates the scroll to newOffset.
    
    Refactored the Scrollable implementation a little to make the roles of the "toEnd" and "toOffset" animations clearer.
    
    _handlePointerDown() now stops both animations.
    
    Similarly, we only call settleScrollOffset() from the cancel gesture handlers if the animations aren't already running.
    6a17d180
Name
Last commit
Last update
..
bin Loading commit data...
example Loading commit data...
lib Loading commit data...
.gitignore Loading commit data...
CHANGELOG.md Loading commit data...
README.md Loading commit data...
pubspec.yaml Loading commit data...