mirror of
https://github.com/flutter/flutter
synced 2024-07-16 10:29:14 +00:00
Make TabController communicating creation in constructor. (#144912)
Contributes to https://github.com/flutter/flutter/issues/144910
This commit is contained in:
parent
91cccc8e6b
commit
e66811ae04
|
@ -132,7 +132,11 @@ class TabController extends ChangeNotifier {
|
|||
}) : _index = index,
|
||||
_previousIndex = previousIndex,
|
||||
_animationController = animationController,
|
||||
_animationDuration = animationDuration;
|
||||
_animationDuration = animationDuration {
|
||||
if (kFlutterMemoryAllocationsEnabled) {
|
||||
ChangeNotifier.maybeDispatchObjectCreation(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Creates a new [TabController] with `index`, `previousIndex`, `length`, and
|
||||
|
|
Loading…
Reference in a new issue