Showing
1 changed file
with
7 additions
and
7 deletions
@@ -73,7 +73,10 @@ Notice this route type behaves the same as `MaterialPageRoute` and supports cust | @@ -73,7 +73,10 @@ Notice this route type behaves the same as `MaterialPageRoute` and supports cust | ||
73 | 73 | ||
74 | How can I change my route class? See cases: | 74 | How can I change my route class? See cases: |
75 | 75 | ||
76 | -<details><summary> 1. Using Navigator.of(context).push </summary> | 76 | +<details><summary> 1. |
77 | + | ||
78 | + Using `Navigator.of(context).push` | ||
79 | + </summary> | ||
77 | 80 | ||
78 | ```dart | 81 | ```dart |
79 | Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container()));` | 82 | Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container()));` |
@@ -85,9 +88,8 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | @@ -85,9 +88,8 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | ||
85 | 88 | ||
86 | </details> | 89 | </details> |
87 | 90 | ||
88 | -<details><summary> | 91 | +<details><summary>2. |
89 | 92 | ||
90 | - 2. | ||
91 | Using `onGenerateRoute` parameter of `MaterialApp`, `CupertinoApp` or `Navigator` | 93 | Using `onGenerateRoute` parameter of `MaterialApp`, `CupertinoApp` or `Navigator` |
92 | </summary> | 94 | </summary> |
93 | 95 | ||
@@ -107,9 +109,8 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | @@ -107,9 +109,8 @@ Navigator.of(context).push(MaterialPageRoute(builder: (context) => Container())) | ||
107 | 109 | ||
108 | </details> | 110 | </details> |
109 | 111 | ||
110 | - <details><summary> | 112 | + <details><summary> 3. |
111 | 113 | ||
112 | - 3. | ||
113 | Using `pageRouteBuilder` parameter of `WidgetApp` | 114 | Using `pageRouteBuilder` parameter of `WidgetApp` |
114 | </summary> | 115 | </summary> |
115 | 116 | ||
@@ -120,9 +121,8 @@ pageRouteBuilder: <T>(RouteSettings settings, WidgetBuilder builder) => Material | @@ -120,9 +121,8 @@ pageRouteBuilder: <T>(RouteSettings settings, WidgetBuilder builder) => Material | ||
120 | </details> | 121 | </details> |
121 | 122 | ||
122 | <details> | 123 | <details> |
123 | - <summary> | 124 | + <summary>4. |
124 | 125 | ||
125 | - 4. | ||
126 | Using `routes` parameter from `MaterialApp` or `CupertinoApp` | 126 | Using `routes` parameter from `MaterialApp` or `CupertinoApp` |
127 | </summary> | 127 | </summary> |
128 | 128 |
-
Please register or login to post a comment