FletGNavBar 🌟
Custom Google Navigation Bar (GNav) control for Flet apps, built on Flutter's google_nav_bar package.
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.
Metadata
Release files for flet-gnav-bar 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flet_gnav_bar-0.0.2.tar.gz | 6.9 kB | With provenance | Details for flet_gnav_bar-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flet_gnav_bar-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for flet_gnav_bar-0.0.2-py3-none-any.whl |
Total release size: 15.1 kB
Security for flet-gnav-bar 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.