Commit 4f43a782 authored by Adam Barth's avatar Adam Barth

Rename _updateScrollBehaviour to _updateScrollBehavior

Fixes #675
parent 38aa83b0
......@@ -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