{"id":24479242,"url":"https://github.com/omamkaz/flet-stacked","last_synced_at":"2025-06-17T18:37:54.998Z","repository":{"id":272991949,"uuid":"915077992","full_name":"omamkaz/flet-stacked","owner":"omamkaz","description":"a custom Flet control for managing multiple pages with smooth animations. It supports switching pages by key or index, next/previous navigation, and customizable transitions, making it perfect for dynamic UIs.","archived":false,"fork":false,"pushed_at":"2025-05-01T00:15:57.000Z","size":85,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T01:25:01.288Z","etag":null,"topics":["flet","navigation","pages","route","toolkit","tools"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omamkaz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-10T23:10:56.000Z","updated_at":"2025-05-01T00:12:36.000Z","dependencies_parsed_at":"2025-03-14T18:30:25.319Z","dependency_job_id":null,"html_url":"https://github.com/omamkaz/flet-stacked","commit_stats":null,"previous_names":["omamkaz/flet-stacked"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/omamkaz/flet-stacked","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omamkaz%2Fflet-stacked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omamkaz%2Fflet-stacked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omamkaz%2Fflet-stacked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omamkaz%2Fflet-stacked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omamkaz","download_url":"https://codeload.github.com/omamkaz/flet-stacked/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omamkaz%2Fflet-stacked/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260419718,"owners_count":23006337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flet","navigation","pages","route","toolkit","tools"],"created_at":"2025-01-21T10:14:55.271Z","updated_at":"2025-06-17T18:37:49.984Z","avatar_url":"https://github.com/omamkaz.png","language":"Python","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Flet Stacked v1.0.4\n\n`Stacked` is a custom Flet control for managing multiple pages with smooth animations. It supports switching pages by key or index, next/previous navigation, and customizable transitions, making it perfect for dynamic UIs.\n\n## Features\n\n- Smooth Transitions: Seamlessly switch between pages with customizable animations and durations.\n- Flexible Navigation: Navigate by keys, indices, or with next/previous controls for dynamic UIs.\n- State Management: Easily access the current page or route for efficient state handling.\n\n## Installation\nYou can install Flet Stacked using pip:\n\n```bash\npip install git+https://github.com/omamkaz/flet-stacked.git\n```\n\n## Usage\n\n```python\nimport flet as ft\nfrom flet_stacked import Stacked\n\n\ndef main(page: ft.Page):\n    page.title = \"Flet Stacked Example 1\"\n    page.vertical_alignment = ft.MainAxisAlignment.CENTER\n    page.horizontal_alignment = ft.CrossAxisAlignment.CENTER\n\n    page.window.width = page.window.height = 600\n\n    routes = {\n        \"home\": ft.Text(\"Home Page\", size=30),\n        \"about\": ft.Text(\"About Page\", size=30),\n        \"contact\": ft.Text(\"Contact Page\", size=30),\n    }\n\n    stacked = Stacked(routes, index=\"home\", on_route_change=lambda route: print(\"Route: \", route))\n\n    def go_to_about(e):\n        stacked.switch(\"about\")\n\n    def next_page(e):\n        stacked.go_next()\n\n    def prev_page(e):\n        stacked.go_prev()\n\n    page.add(\n        stacked,\n        ft.Row(\n            [\n                ft.ElevatedButton(\"Go to About\", on_click=go_to_about),\n                ft.ElevatedButton(\"Next\", on_click=next_page),\n                ft.ElevatedButton(\"Previous\", on_click=prev_page),\n            ]\n        ),\n    )\n\n\nif __name__ == \"__main__\":\n    ft.app(target=main)\n```\n\n## Output of above code\n\n![Example 2](media/screenshot.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomamkaz%2Fflet-stacked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomamkaz%2Fflet-stacked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomamkaz%2Fflet-stacked/lists"}