You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`navigate(route: str, page: Page, args: tuple[Any]=None, route_parameters: dict[str, Any]={}) -> None` - Navigate to specific route. Specify `args` to transfer arguments to other page.
91
-
-`render(page: Page, args: tuple[Any]=None, route_parameters: dict[str, Any]={}) -> None` - Render current route. If there is no route like that throw ROUTE-404 (if specified). Should be called only one time.
86
+
-`navigate(route: str, page: Page, args: tuple[Any]=None) -> None` - Navigate to specific route. Specify `args` to transfer arguments to other page.
87
+
-`render(page: Page, args: tuple[Any]=None) -> None` - Render current route. If there is no route like that throw ROUTE-404 (if specified). Should be called only one time.
92
88
-`set_route_data(self, route: str, data: Any) -> int` - Set route data (cookies-like mechanism). Returns success/fail.
93
89
-`get_route_data(self, route: str) -> Any` - Get route data.
94
90
@@ -97,15 +93,15 @@ Using example:
97
93
```python
98
94
from flet import app, Page
99
95
100
-
from flet_navigator import VirtualFletNavigator, Any, ROUTE_404
96
+
from flet_navigator import VirtualFletNavigator, PageData, Any, ROUTE_404
-`navigate(route: str, page: Page, args: tuple[Any]=None, route_parameters: dict[str, Any]={}) -> None` - Navigate to specific route. Specify `args` to transfer arguments to other page.
134
+
-`navigate(route: str, page: Page, args: tuple[Any]=None) -> None` - Navigate to specific route. Specify `args` to transfer arguments to other page.
139
135
-`render(page: Page, args: tuple[Any]=None, route_parameters: dict[str, Any]={}) -> None` - Render current route. If there is no route like that throw ROUTE-404 (if specified). Should be called only one time.
140
136
-`set_route_data(self, route: str, data: Any) -> int` - Set route data (cookies-like mechanism). Returns success/fail.
141
137
-`get_route_data(self, route: str) -> Any` - Get route data.
@@ -148,13 +144,13 @@ from flet import app, Page, WEB_BROWSER
148
144
from flet_navigator import FletNavigator, Any, ROUTE_404
Summary! Now you know difference between virtual and non-virtual navigator, how to use navigator, etc! Good luck, have fun! But remember that project isn't finished!
227
+
Summary! Now you know difference between virtual and non-virtual navigator, how to use navigator, etc! Good luck, have fun! But remember that project isn't finished!<br><br>
180
228
181
229
*Developer Note*: It would be great support for me if you'd added credits for FletNavigator! Optional!
0 commit comments