Skip to content

Commit 2c7c2ce

Browse files
authored
Documentation patch.
Documentation patch.
1 parent 2e9bcc1 commit 2c7c2ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flet-navigator-docs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ Homepage is main page, that you can set with `set_homepage`, and navigate with `
9999
- `routes: Routes = {}` - Registered routes.
100100
- `routes_data: dict[str, Any] = {}` - Routes data.
101101
- `homepage: str = '/'` - Homepage (main page).
102-
- `fade_effect: bool = True` - Use fade effect when switching pages? BETA.
102+
- `navigator_animation: NavigatorAnimation = NavigatorAnimation()` - Page switch animation.
103103
- `appbars: dict[int, Control] = {}` - Dictionary of appbars for each page (ID).
104104
- `route_changed_handler: RouteChangedHandler = None` - Route changed handler.<br><br>
105105

106-
- `__init__(routes: dict[str, Callable[[Page, 'VirtualFletNavigator', tuple[Any], str], None]], route_changed_handler: Callable[[str], None]=None) -> None` - Initialize Virtual Flet Navigator.
106+
- `__init__(routes: dict[str, Callable[[Page, 'VirtualFletNavigator', tuple[Any], str], None]], route_changed_handler: Callable[[str], None]=None, navigator_animation: NavigatorAnimation=NavigatorAnimation()) -> None` - Initialize Virtual Flet Navigator.
107107
- `navigate(route: str, page: Page, args: tuple[Any]=None) -> None` - Navigate to specific route. Specify `args` to transfer arguments to other page.
108108
- `navigate_homepage(page: Page, args: tuple[Any]=None) -> None` - Navigate to homepage.
109109
- `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.
@@ -153,11 +153,11 @@ app(target=main)
153153
- `routes: Routes = {}` - Registered routes.
154154
- `routes_data: dict[str, Any] = {}` - Routes data.
155155
- `homepage: str = '/'` - Homepage (main page).
156-
- `fade_effect: bool = True` - Use fade effect when switching pages? BETA.
156+
- `navigator_animation: NavigatorAnimation = NavigatorAnimation()` - Page switch animation.
157157
- `appbars: dict[int, Control] = {}` - Dictionary of appbars for each page (ID).
158158
- `route_changed_handler: RouteChangedHandler = None` - Route changed handler.<br><br>
159159

160-
- `__init__(page: Page, routes: dict[str, Callable[[Page, 'VirtualFletNavigator', tuple[Any], str], None]], route_changed_handler: Callable[[str], None]=None) -> None` - Initialize Flet Navigator.
160+
- `__init__(page: Page, routes: dict[str, Callable[[Page, 'VirtualFletNavigator', tuple[Any], str], None]], route_changed_handler: Callable[[str], None]=None, navigator_animation: NavigatorAnimation=NavigatorAnimation()) -> None` - Initialize Flet Navigator.
161161
- `navigate(route: str, page: Page, args: tuple[Any]=None) -> None` - Navigate to specific route. Specify `args` to transfer arguments to other page.
162162
- `navigate_homepage(page: Page, args: tuple[Any]=None) -> None` - Navigate to homepage (main page).
163163
- `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.

0 commit comments

Comments
 (0)