Unverified Commit e66811ae authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

Make TabController communicating creation in constructor. (#144912)

Contributes to https://github.com/flutter/flutter/issues/144910
parent 91cccc8e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment