Unverified Commit 52a53119 authored by chunhtai's avatar chunhtai Committed by GitHub

remove isinitialroute from RouteSettings (#51435)

parent be97fdbd
...@@ -418,7 +418,6 @@ class RouteSettings { ...@@ -418,7 +418,6 @@ class RouteSettings {
/// Creates data used to construct routes. /// Creates data used to construct routes.
const RouteSettings({ const RouteSettings({
this.name, this.name,
this.isInitialRoute = false,
this.arguments, this.arguments,
}); });
...@@ -439,19 +438,6 @@ class RouteSettings { ...@@ -439,19 +438,6 @@ class RouteSettings {
/// If null, the route is anonymous. /// If null, the route is anonymous.
final String name; 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. /// The arguments passed to this route.
/// ///
/// May be used when building the route, e.g. in [Navigator.onGenerateRoute]. /// May be used when building the route, e.g. in [Navigator.onGenerateRoute].
...@@ -2178,7 +2164,6 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin { ...@@ -2178,7 +2164,6 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin {
}()); }());
final RouteSettings settings = RouteSettings( final RouteSettings settings = RouteSettings(
name: name, name: name,
isInitialRoute: _history.isEmpty,
arguments: arguments, arguments: arguments,
); );
Route<T> route = widget.onGenerateRoute(settings) as Route<T>; Route<T> route = widget.onGenerateRoute(settings) as Route<T>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment