Commit 853c42fc authored by Adam Barth's avatar Adam Barth

Merge pull request #677 from abarth/behavior

Rename _updateScrollBehaviour to _updateScrollBehavior
parents a4b7cb37 4f43a782
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment