From 4f185ecde6c87403a8548aa8e72ea1f045986d8f Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Fri, 1 Mar 2019 08:03:01 -0800 Subject: [PATCH] Update TabController.indexIsChanging doc (#28663) --- packages/flutter/lib/src/material/tab_controller.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/material/tab_controller.dart b/packages/flutter/lib/src/material/tab_controller.dart index 986cfc363f5..e91a4fd1280 100644 --- a/packages/flutter/lib/src/material/tab_controller.dart +++ b/packages/flutter/lib/src/material/tab_controller.dart @@ -150,7 +150,12 @@ class TabController extends ChangeNotifier { int get previousIndex => _previousIndex; int _previousIndex; - /// True while we're animating from [previousIndex] to [index]. + /// True while we're animating from [previousIndex] to [index] as a + /// consequence of calling [animateTo]. + /// + /// This value is true during the [animateTo] animation that's triggered when + /// the user taps a [TabBar] tab. It is false when [offset] is changing as a + /// consequence of the user dragging (and "flinging") the [TabBarView]. bool get indexIsChanging => _indexIsChangingCount != 0; int _indexIsChangingCount = 0;