flet-navigator


Nameflet-navigator JSON
Version 3.8.6 PyPI version JSON
download
home_pagehttps://github.com/xzripper/flet_navigator
Summary⚡⚓ Minimalistic, fast, and powerful navigation library for Flet applications.
upload_time2024-12-20 12:26:38
maintainerNone
docs_urlNone
authorEvan
requires_python>=3.9
licenseMIT
keywords navigator router utility flet
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center"><b>⚡ FletNavigator V3</b></h1>
<p align="center"><img src="https://img.shields.io/badge/V3.8.6-black?style=for-the-badge&logo=flutter&logoColor=white" width=100>
<img src="https://img.shields.io/badge/Python%203.9%2B-black?style=for-the-badge&logo=python&logoColor=white" width=150>
<img src="https://img.shields.io/badge/Awesome%20Flet-black?style=for-the-badge&logo=styledcomponents&logoColor=white&logoSize=auto" width=185></p>

<p align="center"><b>FletNavigator is a simple yet effective library made to handle navigation in Flet apps incredibly quickly. Effective management of both virtual and public routes are guaranteed by its lightweight architecture. Complex navigation situations are made simpler by its support for dynamic page rendering, URL parameters, and configurable route change callbacks. With built-in 404 error handling and hierarchical and parameterised routes, FletNavigator shines. Building responsive and reliable Flet-based applications is made easier with its user-friendly design and performance optimisation.</b></p>

<p align="center"><img src="https://github.com/xzripper/flet_navigator/blob/main/mini.gif?raw=true"></p>

<b>

```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))
```
</b>

<p align="center"><a href="https://github.com/xzripper/flet_navigator/blob/main/flet-navigator-docs.md"><b>See the documentation.</b></a></p>

<hr><p align="center"><b>FletNavigator V3.8.6</b></p>



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/xzripper/flet_navigator",
    "name": "flet-navigator",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "navigator, router, utility, flet",
    "author": "Evan",
    "author_email": "name1not1found.com@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7c/e1/e26718aa9ecf32fe357f5bdff7047bd1cc7bbdb665bec098d272ba3cb730/flet_navigator-3.8.6.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\"><b>\u26a1 FletNavigator V3</b></h1>\r\n<p align=\"center\"><img src=\"https://img.shields.io/badge/V3.8.6-black?style=for-the-badge&logo=flutter&logoColor=white\" width=100>\r\n<img src=\"https://img.shields.io/badge/Python%203.9%2B-black?style=for-the-badge&logo=python&logoColor=white\" width=150>\r\n<img src=\"https://img.shields.io/badge/Awesome%20Flet-black?style=for-the-badge&logo=styledcomponents&logoColor=white&logoSize=auto\" width=185></p>\r\n\r\n<p align=\"center\"><b>FletNavigator is a simple yet effective library made to handle navigation in Flet apps incredibly quickly. Effective management of both virtual and public routes are guaranteed by its lightweight architecture. Complex navigation situations are made simpler by its support for dynamic page rendering, URL parameters, and configurable route change callbacks. With built-in 404 error handling and hierarchical and parameterised routes, FletNavigator shines. Building responsive and reliable Flet-based applications is made easier with its user-friendly design and performance optimisation.</b></p>\r\n\r\n<p align=\"center\"><img src=\"https://github.com/xzripper/flet_navigator/blob/main/mini.gif?raw=true\"></p>\r\n\r\n<b>\r\n\r\n```python\r\nfrom flet import app, Text, FilledButton\r\n\r\nfrom flet_navigator import PublicFletNavigator, PageData, route\r\n\r\n\r\n@route('/')\r\ndef main(pg: PageData) -> None:\r\n    pg.add(Text('Hello World!'))\r\n\r\n    pg.add(FilledButton('Navigate to the second page!', on_click=lambda _: pg.navigate('second')))\r\n\r\n@route\r\ndef second(pg: PageData) -> None:\r\n    pg.add(Text('I am the second page!'))\r\n\r\n    pg.add(FilledButton('Return to the homepage!', on_click=lambda _: pg.navigate_homepage()))\r\n\r\napp(lambda page: PublicFletNavigator(page).render(page))\r\n```\r\n</b>\r\n\r\n<p align=\"center\"><a href=\"https://github.com/xzripper/flet_navigator/blob/main/flet-navigator-docs.md\"><b>See the documentation.</b></a></p>\r\n\r\n<hr><p align=\"center\"><b>FletNavigator V3.8.6</b></p>\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\u26a1\u2693 Minimalistic, fast, and powerful navigation library for Flet applications.",
    "version": "3.8.6",
    "project_urls": {
        "Homepage": "https://github.com/xzripper/flet_navigator"
    },
    "split_keywords": [
        "navigator",
        " router",
        " utility",
        " flet"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ce1e26718aa9ecf32fe357f5bdff7047bd1cc7bbdb665bec098d272ba3cb730",
                "md5": "d0b1d1d3ea108133cd181b01b6de57fa",
                "sha256": "e10095af075fb020ccb5f1bc7ada86eaccd47932ec0e45d92d8c30cf9ff6dfdc"
            },
            "downloads": -1,
            "filename": "flet_navigator-3.8.6.tar.gz",
            "has_sig": false,
            "md5_digest": "d0b1d1d3ea108133cd181b01b6de57fa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7807,
            "upload_time": "2024-12-20T12:26:38",
            "upload_time_iso_8601": "2024-12-20T12:26:38.874865Z",
            "url": "https://files.pythonhosted.org/packages/7c/e1/e26718aa9ecf32fe357f5bdff7047bd1cc7bbdb665bec098d272ba3cb730/flet_navigator-3.8.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-20 12:26:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xzripper",
    "github_project": "flet_navigator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "flet-navigator"
}
        
Elapsed time: 0.64738s