diff --git a/packages/flutter/lib/src/widgets/pages.dart b/packages/flutter/lib/src/widgets/pages.dart index eecc0e7241..69238379dc 100644 --- a/packages/flutter/lib/src/widgets/pages.dart +++ b/packages/flutter/lib/src/widgets/pages.dart @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart'; import 'basic.dart'; import 'framework.dart'; import 'navigator.dart'; -import 'overlay.dart'; import 'routes.dart'; /// A modal route that replaces the entire screen. @@ -44,11 +43,6 @@ abstract class PageRoute extends ModalRoute { controller.value = 1.0; return controller; } - - /// Subclasses can override this method to customize how heroes are inserted. - void insertHeroOverlayEntry(OverlayEntry entry, Object tag, OverlayState overlay) { - overlay.insert(entry); - } } /// Signature for the [PageRouteBuilder] function that builds the route's