Update TabController.indexIsChanging doc (#28663)

This commit is contained in:
Hans Muller 2019-03-01 08:03:01 -08:00 committed by GitHub
parent cccf44faa6
commit 4f185ecde6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,12 @@ class TabController extends ChangeNotifier {
int get previousIndex => _previousIndex; int get previousIndex => _previousIndex;
int _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; bool get indexIsChanging => _indexIsChangingCount != 0;
int _indexIsChangingCount = 0; int _indexIsChangingCount = 0;