From 52a53119242554e6646501b7707cb9e9cb246593 Mon Sep 17 00:00:00 2001 From: chunhtai <47866232+chunhtai@users.noreply.github.com> Date: Thu, 27 Feb 2020 10:41:08 -0800 Subject: [PATCH] remove isinitialroute from RouteSettings (#51435) --- packages/flutter/lib/src/widgets/navigator.dart | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/flutter/lib/src/widgets/navigator.dart b/packages/flutter/lib/src/widgets/navigator.dart index 7500ca98c6..d7abf37ea3 100644 --- a/packages/flutter/lib/src/widgets/navigator.dart +++ b/packages/flutter/lib/src/widgets/navigator.dart @@ -418,7 +418,6 @@ class RouteSettings { /// Creates data used to construct routes. const RouteSettings({ this.name, - this.isInitialRoute = false, this.arguments, }); @@ -439,19 +438,6 @@ class RouteSettings { /// If null, the route is anonymous. final String name; - /// Whether this route is the very first route being pushed onto this [Navigator]. - /// - /// The initial route typically skips any entrance transition to speed startup. - /// - /// This property has been deprecated. Uses [Navigator.onGenerateInitialRoutes] - /// to customize initial routes instead. This feature was deprecated after - /// v1.14.1. - @Deprecated( - 'Uses onGenerateInitialRoutes to customize initial routes instead. ' - 'This feature was deprecated after v1.14.1.' - ) - final bool isInitialRoute; - /// The arguments passed to this route. /// /// May be used when building the route, e.g. in [Navigator.onGenerateRoute]. @@ -2178,7 +2164,6 @@ class NavigatorState extends State with TickerProviderStateMixin { }()); final RouteSettings settings = RouteSettings( name: name, - isInitialRoute: _history.isEmpty, arguments: arguments, ); Route route = widget.onGenerateRoute(settings) as Route;