Skip to content

Commit

Permalink
Make TabController communicating creation in constructor. (flutter#14…
Browse files Browse the repository at this point in the history
…4912)

Contributes to flutter#144910
  • Loading branch information
polina-c authored Mar 11, 2024
1 parent 91cccc8 commit e66811a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/flutter/lib/src/material/tab_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e66811a

Please sign in to comment.