Skip to main content

Navigator for Flet.

Project description

https://github.com/xzripper/flet_navigator/raw/main/example2.gif

FletNavigator & FletReStyle

Simple and fast navigator (router) for Flet (Python) that allows you to create multi-page applications!

Click here for documentation.

Using Example:

from flet import app, Page, Text

from flet_navigator import VirtualFletNavigator, PageData, ROUTE_404, 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.

@route(ROUTE_404)
def route_404(pg: PageData) -> None:
   ... # 404 Page Content.

def main(page: Page) -> None:
   # Initialize navigator and render page.
   VirtualFletNavigator().render(page)

app(main)
https://raw.githubusercontent.com/xzripper/flet_navigator/main/example.gif

(Deprecated Example GIF).

See the difference between VirtualFletNavigator and FletNavigator, and more here (<- documentation).


FletNavigator V2.6.5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flet_navigator-2.6.5.tar.gz (7.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page