plug_bottom_nav 0.2.0
plug_bottom_nav: ^0.2.0 copied to clipboard
Plug-and-play Blinkit/Uber/Instacart-style bottom navigation for Flutter. Auto-generates GoRouter StatefulShellRoute, Riverpod tab state, per-seller carts and an automatic add-to-cart button. No manua [...]
0.2.0 #
- updated to latest version
0.1.0 #
Initial release.
Added #
PlugBottomNavRouter.createauto-generates theStatefulShellRoute.indexedStackGoRouter — no manual shell-route boilerplate.PlugBottomNavShelldrop-in widget for use inside your own GoRouter.- Blinkit / Uber / Instacart-style bottom bar with
pinned,floating,reverse,hideOnScroll,showLabels, selected/unselected colors, background color, and per-tab badge counts. PlugBottomNavConfigfor styling (sizes, radius, elevation, margins, animation type/duration, label style).pinnedandfloatingare independent switches.PlugNavRoute(icon + label + page + nested routes) for the auto router andPlugNavItem(icon + label only) for manual shell use.- Riverpod 3.x state:
plugSelectedIndexProvider— selected tab, synced from the navigation shell.plugCartProvider— Instacart-style per-seller carts.plugCartCountProvider/plugCartTotalProvider— live per-seller helpers.plugAddToCartLoadingProvider— independent per-button loading flags.
PlugAddToCartButton— automatic loading spinner,Add→Added/Change, double-tap guard, and optional quantity stepper.PlugCartBar— floating per-seller cart bar with live count + total.- Tab transitions via the
animationspackage:fade,fadeThrough,slide,scale,none. - Support for nested routes (bar stays visible) and
extraRoutes(full-screen, no bar), plus optional authredirect. - Example app and provider unit tests.