Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
8ede83b8
Unverified
Commit
8ede83b8
authored
May 14, 2020
by
chunhtai
Committed by
GitHub
May 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update initial route documentation (#57136)
parent
a2cf9ecc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
app.dart
packages/flutter/lib/src/widgets/app.dart
+5
-4
navigator.dart
packages/flutter/lib/src/widgets/navigator.dart
+4
-3
No files found.
packages/flutter/lib/src/widgets/app.dart
View file @
8ede83b8
...
...
@@ -404,10 +404,11 @@ class WidgetsApp extends StatefulWidget {
/// Defaults to [Window.defaultRouteName], which may be overridden by the code
/// that launched the application.
///
/// If the route contains slashes, then it is treated as a "deep link", and
/// before this route is pushed, the routes leading to this one are pushed
/// also. For example, if the route was `/a/b/c`, then the app would start
/// with the three routes `/a`, `/a/b`, and `/a/b/c` loaded, in that order.
/// If the route name starts with a slash and has multiple slashes in it, then
/// it is treated as a "deep link", and before this route is pushed, the
/// routes leading to this one are pushed also. For example, if the route was
/// `/a/b/c`, then the app would start with the three routes `/a`, `/a/b`, and
/// `/a/b/c` loaded, in that order.
///
/// Intermediate routes aren't required to exist. In the example above, `/a`
/// and `/a/b` could be skipped if they have no matching route. But `/a/b/c` is
...
...
packages/flutter/lib/src/widgets/navigator.dart
View file @
8ede83b8
...
...
@@ -2151,9 +2151,10 @@ class Navigator extends StatefulWidget {
/// This is the default value of [onGenerateInitialRoutes], which is used if
/// [initialRoute] is not null.
///
/// If this string contains any `/` characters, then the string is split on
/// those characters and substrings from the start of the string up to each
/// such character are, in turn, used as routes to push.
/// If this string starts with a `/` character and has multiple `/` characters
/// in it, then the string is split on those characters and substrings from
/// the start of the string up to each such character are, in turn, used as
/// routes to push.
///
/// For example, if the route `/stocks/HOOLI` was used as the [initialRoute],
/// then the [Navigator] would push the following routes on startup: `/`,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment