Showing
1 changed file
with
5 additions
and
2 deletions
| @@ -86,6 +86,7 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | @@ -86,6 +86,7 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | ||
| 86 | </details> | 86 | </details> |
| 87 | 87 | ||
| 88 | <details><summary> | 88 | <details><summary> |
| 89 | + | ||
| 89 | 2. | 90 | 2. |
| 90 | Using `onGenerateRoute` parameter of `MaterialApp`, `CupertinoApp` or `Navigator` | 91 | Using `onGenerateRoute` parameter of `MaterialApp`, `CupertinoApp` or `Navigator` |
| 91 | </summary> | 92 | </summary> |
| @@ -107,6 +108,7 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | @@ -107,6 +108,7 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | ||
| 107 | </details> | 108 | </details> |
| 108 | 109 | ||
| 109 | <details><summary> | 110 | <details><summary> |
| 111 | + | ||
| 110 | 3. | 112 | 3. |
| 111 | Using `pageRouteBuilder` parameter of `WidgetApp` | 113 | Using `pageRouteBuilder` parameter of `WidgetApp` |
| 112 | </summary> | 114 | </summary> |
| @@ -119,12 +121,13 @@ pageRouteBuilder: <T>(RouteSettings settings, WidgetBuilder builder) => Material | @@ -119,12 +121,13 @@ pageRouteBuilder: <T>(RouteSettings settings, WidgetBuilder builder) => Material | ||
| 119 | 121 | ||
| 120 | <details> | 122 | <details> |
| 121 | <summary> | 123 | <summary> |
| 124 | + | ||
| 122 | 4. | 125 | 4. |
| 123 | Using `routes` parameter from `MaterialApp` or `CupertinoApp` | 126 | Using `routes` parameter from `MaterialApp` or `CupertinoApp` |
| 124 | </summary> | 127 | </summary> |
| 125 | 128 | ||
| 126 | -Unfortunately this routes are `MaterialPageRoute` and `CupertinoPageRoute` respectively and cannot be changes. | ||
| 127 | -You can change the way you call the previous route with one of the previous methods or try option 2 | 129 | +Unfortunately this parameter uses `MaterialPageRoute` and `CupertinoPageRoute` respectively and cannot be changed. |
| 130 | +You can modify the way you call the previous route with one of the previous methods or try option 2 | ||
| 128 | 131 | ||
| 129 | </details> | 132 | </details> |
| 130 | 133 |
-
Please register or login to post a comment