df_router library
A lightweight router designed for ease of use and efficient state management.
Classes
- AnimationEffect
- AnimationEffectBuilder
- AnimationEffectBuilderState
- AnimationLayerEffect
- BackwardEffect
- BackwardEffectWeb
- CupertinoEffect
- DraggableModalSheet
-
Bottom-sheet wrapper for routes flagged
RouteBuilder(isOverlay: true). - DraggableModalSheetState
- Wraps a route's content in a horizontal-pan gesture that drives the router's tentative-navigation API. Drag right-to-left to go forward (commit a push toward forwardTarget); drag left-to-right to go backward (commit toward backwardTarget). Release past the threshold commits the navigation; release short of it cancels.
- FadeEffect
- FadeEffectWeb
- ForwardEffect
- ForwardEffectWeb
- LayerEffectResult
- MaterialEffect
- NoEffect
- PageFlapLeft
- PageFlapRight
- PaperTurnBackEffect
- PaperTurnEffect
- PrioritizedIndexedStack
- RenderPrioritizedIndexedStack
-
RouteBuilder<
TExtra extends Object?> - RouteController
- RouteControllerProvider
- RouteManager
- RouteStackUri
-
Codec for serializing a list of route URIs into a single URL and back —
used by
RouteControllerwhenUrlStrategy.stackedis enabled. -
RouteState<
TExtra extends Object?> -
RouteWidgetBuilder<
TExtra extends Object?> - SlideDownEffect
- SlideUpEffect
- StatelessRouteManager
Enums
- UrlStrategy
-
Controls how
RouteControllerserializes its navigation history into the browser URL.
Mixins
-
RouteWidgetMixin<
TExtra extends Object?>
Properties
-
no setter
Functions
-
normalizePathQuery(
String input) → String? -
setToUrlHashStrategy(
) → void - Initializes the URL hash strategy for the application.
-
setToUrlPathStrategy(
) → void - Initializes the URL path strategy for the application.
Typedefs
- TRouteConditionFn = bool Function()
-
TRouteWidgetBuilder<
TExtra extends Object?> = RouteWidgetMixin< TExtra> Function(BuildContext context, RouteState<TExtra?> routeState) - TRouteWrapperFn = Widget Function(BuildContext context, Widget child)