Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
modal_bottom_sheet
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
Jaime Blasco
2020-04-08 13:58:34 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-04-08 13:58:34 +0200
Commit
a646a8e79a287f04c9f29b2eed711987b44cff82
a646a8e7
1 parent
e1e7da48
Update README.md
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
README.md
README.md
View file @
a646a8e
...
...
@@ -73,7 +73,10 @@ Notice this route type behaves the same as `MaterialPageRoute` and supports cust
How can I change my route class? See cases:
<details><summary> 1. Using Navigator.of(context).push </summary>
<details><summary> 1.
Using `Navigator.of(context).push`
</summary>
```
dart
Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container()));
`
...
...
@@ -85,9 +88,8 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container()))
</details>
<details><summary>
<details><summary>
2.
2.
Using `onGenerateRoute` parameter of `MaterialApp`, `CupertinoApp` or `Navigator`
</summary>
...
...
@@ -107,9 +109,8 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container()))
</details>
<details><summary>
<details><summary>
3.
3.
Using `pageRouteBuilder` parameter of `WidgetApp`
</summary>
...
...
@@ -120,9 +121,8 @@ pageRouteBuilder: <T>(RouteSettings settings, WidgetBuilder builder) => Material
</details>
<details>
<summary>
<summary>
4.
4.
Using `routes` parameter from `MaterialApp` or `CupertinoApp`
</summary>
...
...
Please
register
or
login
to post a comment