mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08: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…
x
Reference in New Issue
Block a user