An open API service indexing awesome lists of open source software.

https://github.com/xzripper/flet_navigator

⚡⚓ Minimalistic, fast, and effective navigation/routing library for Flet applications.
https://github.com/xzripper/flet_navigator

flet flet-navigator navigator python3 router

Last synced: 7 months ago
JSON representation

⚡⚓ Minimalistic, fast, and effective navigation/routing library for Flet applications.

Awesome Lists containing this project

README

          

⚡ FletNavigator V3




FletNavigator is a module that revolutionizes navigation/routing in the Flet framework, combining uncombined speed, super-simplicity, and efficiency. FletNavigator supports cross-page templates, cross-page argument passing, URL parameters, 404 page customization, and other useful features, with only ~120 lines of code under the hood (no blank lines or docstrings). Install and try it yourself!

```python
from flet import app, Text, FilledButton

from flet_navigator import PublicFletNavigator, PageData, route

@route('/')
def main(pg: PageData) -> None:
pg.add(Text('Hello World!'))

pg.add(FilledButton('Navigate to the second page!', on_click=lambda _: pg.navigate('second')))

@route
def second(pg: PageData) -> None:
pg.add(Text('I am the second page!'))

pg.add(FilledButton('Return to the homepage!', on_click=lambda _: pg.navigate_homepage()))

app(lambda page: PublicFletNavigator(page).render(page))
```

See the documentation.


FletNavigator V3.8.6