diff --git a/packages/flutter/lib/src/widgets/animated_switcher.dart b/packages/flutter/lib/src/widgets/animated_switcher.dart index 917210cd3e..ce7bfa7457 100644 --- a/packages/flutter/lib/src/widgets/animated_switcher.dart +++ b/packages/flutter/lib/src/widgets/animated_switcher.dart @@ -247,7 +247,7 @@ class _AnimatedSwitcherState extends State with TickerProvider }) { final _AnimatedSwitcherChildEntry entry = new _AnimatedSwitcherChildEntry( widgetChild: widget.child, - transition: KeyedSubtree.wrap( + transition: new KeyedSubtree.wrap( widget.transitionBuilder( widget.child, animation,