Skip to main content

FletGnavBar control for Flet

Project description

FletGNavBar 🌟

Custom Google Navigation Bar (GNav) control for Flet apps, built on Flutter's google_nav_bar package.

PyPI Version Flutter Package License Build Status


Features

  • Fully compatible with Flet.
  • Supports tabs with icons, labels, and optional badges.
  • Customizable colors, active/inactive states, ripple, and hover effects.
  • Works on desktop, web, and mobile targets.

Installation

Git dependency

Add to your pyproject.toml:

dependencies = [
  "flet_gnav_bar @ git+https://github.com/pro-grammer-SD/flet_gnav_bar",
  "flet>=0.28.3",
]

PyPI dependency

If published on PyPI:

dependencies = [
  "flet_gnav_bar",
  "flet>=0.28.3",
]

Build your app:

flet build macos -v

Example Usage

import flet as ft
from flet_gnav_bar import FletGNavBar, FletGNavBarButton

def main(page: ft.Page):
    gnav = FletGNavBar(
        selected_index=0,
        tabs=[
            FletGNavBarButton(name="Home", icon_name="home", color="#2FB14F", badge="5"),
            FletGNavBarButton(name="Search", icon_name="search", color="#118DA3"),
            FletGNavBarButton(name="Profile", icon_name="user", color="#E6E21F", badge="!")
        ]
    )

    gnav.on_change = lambda _: print("Selected index:", gnav.selected_index)
    page.add(gnav)

ft.app(target=main)

Documentation

Full documentation is available here.


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_gnav_bar-0.0.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flet_gnav_bar-0.0.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file flet_gnav_bar-0.0.1.tar.gz.

File metadata

  • Download URL: flet_gnav_bar-0.0.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for flet_gnav_bar-0.0.1.tar.gz
Algorithm Hash digest
SHA256 40299150c9533586777fbcdb7a93571c5735a006c91d02c3115fd67552e4d402
MD5 2194d0f8cb82be4c1f2cb0da9d27ce8c
BLAKE2b-256 eca93d007495b0ab9460eec95f95bc59dcb86b23fd5d215e3b81bcb72d42c2b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for flet_gnav_bar-0.0.1.tar.gz:

Publisher: python-publish.yml on pro-grammer-SD/flet_gnav_bar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flet_gnav_bar-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: flet_gnav_bar-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for flet_gnav_bar-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0cd03c2b4e94387bcc960445d0afb1a57f8ecc99bff68f603aa196feace73b4
MD5 4fd24a4134680c4c906f8dc8e168f2dd
BLAKE2b-256 fbef45a107ea338ce37c3dc40e8d7bb63b53c79ee19ca88aa3725cd2b232e015

See more details on using hashes here.

Provenance

The following attestation bundles were made for flet_gnav_bar-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on pro-grammer-SD/flet_gnav_bar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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