super_navigation_sidebar
library
Classes
-
SuperNavBadge
-
A small trailing pill on a nav row — a count (
'3'), a status ('New',
'Live') or any short token. In the collapsed rail it collapses to a dot.
-
SuperNavigationLocalization
-
Callers can lookup localized strings with an instance of SuperNavigationLocalization
returned by
SuperNavigationLocalization.of(context).
-
SuperNavigationSearchView<T>
-
Search UI for navigating to any leaf in a SuperNavigationSidebarController.
-
-
-
Exposes a SuperNavigationSidebarController to the subtree so any descendant
(a page, a custom header/footer) can read/drive the sidebar and rebuild
when it changes.
-
-
SuperNavNode<T>
-
One node in the navigation tree, generic over a strongly-typed host
value (a route, a screen enum, …) so callers read
node.value with no
casting. Deeply immutable; children is wrapped in List.unmodifiable at
construction time. Use copyWith to derive modified copies.
-
SuperNavOps
-
Static helpers shared by the controller and the view.
-
SuperNavSearchHit
-
A flattened searchable destination extracted from the navigation tree.
-
SuperNavSearchOps
-
Helpers for building and querying the navigation search index.
-
SuperNavSection<T>
-
A titled band of the sidebar (e.g. Overview, Finance). The title is the
small uppercase eyebrow above the band; items are its top-level nodes.
-
Width thresholds that map an available width to a SuperNavSidebarMode — the
Flutter analogue of the web
getNavMode(w). Tune per app.
-
An immutable, JSON-serializable capture of the user-owned sidebar state.
Functions
-
lookupSuperNavigationLocalization(Locale locale)
→ SuperNavigationLocalization
-
-
showNavigationSearchView<T>(BuildContext context, {required SuperNavigationSidebarController<T> controller, SuperNavigationSearchViewMode mode = SuperNavigationSearchViewMode.dialog, ValueChanged<SuperNavNodeId>? onPick, String hint = 'Search navigation…', String recentsLabel = 'Recent'})
→ Future<void>
-
-
showSuperNavigationSearchView<T>(BuildContext context, {required SuperNavigationSidebarController<T> controller, SuperNavigationSearchViewMode mode = SuperNavigationSearchViewMode.dialog, ValueChanged<SuperNavNodeId>? onPick, String hint = 'Search navigation…', String recentsLabel = 'Recent'})
→ Future<void>
-
Presents SuperNavigationSearchView as either a dialog or modal bottom sheet.