FletNavigator & FletReStyle.
Simple and fast navigator (router) for Flet (Python) that allows you to create multi-page applications! [pip install flet_navigator
].
Click for documentation.
Example:
from flet import app, Text
from flet_navigator import PageData, render, anon, route
@route('/')
def main_page(pg: PageData) -> None:
pg.add(Text('Main Page!')) # or `pg.page.add`.
@route('second_page')
def second_page(pg: PageData) -> None:
... # Second page content.
app(anon(render))
(Old Example GIF).
See documentation here.
FletNavigator v2.8.5.