Merge pull request #677 from abarth/behavior
Rename _updateScrollBehaviour to _updateScrollBehavior
This commit is contained in:
@@ -354,16 +354,16 @@ class ScrollableViewportState extends ScrollableState<ScrollableViewport> {
|
||||
void _handleViewportSizeChanged(Size newSize) {
|
||||
_viewportSize = config.scrollDirection == ScrollDirection.vertical ? newSize.height : newSize.width;
|
||||
setState(() {
|
||||
_updateScrollBehaviour();
|
||||
_updateScrollBehavior();
|
||||
});
|
||||
}
|
||||
void _handleChildSizeChanged(Size newSize) {
|
||||
_childSize = config.scrollDirection == ScrollDirection.vertical ? newSize.height : newSize.width;
|
||||
setState(() {
|
||||
_updateScrollBehaviour();
|
||||
_updateScrollBehavior();
|
||||
});
|
||||
}
|
||||
void _updateScrollBehaviour() {
|
||||
void _updateScrollBehavior() {
|
||||
// if you don't call this from build(), you must call it from setState().
|
||||
scrollTo(scrollBehavior.updateExtents(
|
||||
contentExtent: _childSize,
|
||||
|
||||
Reference in New Issue
Block a user