From 4f43a782c88b743a1d515ea768d88f6dcb615d5e Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 2 Dec 2015 09:51:09 -0800 Subject: [PATCH] Rename _updateScrollBehaviour to _updateScrollBehavior Fixes #675 --- packages/flutter/lib/src/widgets/scrollable.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/widgets/scrollable.dart b/packages/flutter/lib/src/widgets/scrollable.dart index 4281cabc35..6ce2703fbb 100644 --- a/packages/flutter/lib/src/widgets/scrollable.dart +++ b/packages/flutter/lib/src/widgets/scrollable.dart @@ -354,16 +354,16 @@ class ScrollableViewportState extends ScrollableState { 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,