diff --git a/packages/flutter/lib/src/material/tab_controller.dart b/packages/flutter/lib/src/material/tab_controller.dart index 507b74288e8..515ab907b24 100644 --- a/packages/flutter/lib/src/material/tab_controller.dart +++ b/packages/flutter/lib/src/material/tab_controller.dart @@ -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