Showing
1 changed file
with
5 additions
and
1 deletions
@@ -69,9 +69,13 @@ void main() { | @@ -69,9 +69,13 @@ void main() { | ||
69 | ``` | 69 | ``` |
70 | 70 | ||
71 | Copy this class and put it in your app, rename routes and classes for your own, add more classes to it if necessary. | 71 | Copy this class and put it in your app, rename routes and classes for your own, add more classes to it if necessary. |
72 | + | ||
72 | ### Important!!! We suggest that you copy this class for 3 reasons: | 73 | ### Important!!! We suggest that you copy this class for 3 reasons: |
74 | + | ||
73 | 1- You must define an escape route if you accidentally set a wrong route. This example already contains this. | 75 | 1- You must define an escape route if you accidentally set a wrong route. This example already contains this. |
74 | -Flutter_Web does not provide friendly urls or url settings (no matter how you set the route, it will always return to the main page after the page is reloaded and the route is not displayed in the url with default navigation) But Get supports it! So, when a user enters yourflutterwebsite.com/support and exactly the support route is displayed, you need to pass the settings parameter to GetRoute, and this example already contemplates it! | 76 | + |
77 | +2- Flutter_Web does not provide friendly urls or url settings (no matter how you set the route, it will always return to the main page after the page is reloaded and the route is not displayed in the url with default navigation) But Get supports it! So, when a user enters yourflutterwebsite.com/support and exactly the support route is displayed, you need to pass the settings parameter to GetRoute, and this example already contemplates it! | ||
78 | + | ||
75 | 3- These routes are designed to work with GetRoute, not CupertinoPageRoute or MaterialPageRoute. Never put them here. | 79 | 3- These routes are designed to work with GetRoute, not CupertinoPageRoute or MaterialPageRoute. Never put them here. |
76 | 80 | ||
77 | ```dart | 81 | ```dart |
-
Please register or login to post a comment