Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonny Borges
2019-11-19 17:05:04 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2019-11-19 17:05:04 -0300
Commit
df58210857dbef21ed3baa30d1bb00811e6cc015
df582108
1 parent
15654e63
Update README.md
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
README.md
README.md
View file @
df58210
...
...
@@ -16,7 +16,7 @@ Add this to your package's pubspec.yaml file:
```
dependencies:
get: ^1.3.
0
get: ^1.3.
2
```
And import it:
...
...
@@ -51,7 +51,7 @@ Get.off(NextScreen());
To go to the next screen and cancel all previous routes (useful in shopping carts, polls, and tests)
```
dart
Get
.
offAll
(
NextScreen
(),
(
Route
<
dynamic
>
route
)
=>
false
));
Get
.
offAll
(
NextScreen
(),
(
route
)
=>
false
));
```
### That's it, you've learned how to navigate between routes the default way.
...
...
@@ -72,7 +72,7 @@ Get.offNamed("/NextScreen");
```
To navigate and remove all previous screens from the tree.
```
dart
Get
.
offAllNamed
(
"/NextScreen"
,
(
Route
<
dynamic
>
route
)
=>
false
));
Get
.
offAllNamed
(
"/NextScreen"
,
(
route
)
=>
false
));
```
## Using with Named Routes and And offering full flutter_web support (REQUIRED FOR NAMED ROUTES):
...
...
Please
register
or
login
to post a comment