navigation/sint_navigation library

Enums

PopMode
Enables the user to customize the intended pop behavior
PreventDuplicateHandlingMode
Enables the user to customize the behavior when pushing multiple router that shouldn't be duplicates
RowStyle
SnackbarStatus
Indicates Status of snackbar SnackbarStatus.OPEN Snack is fully open, SnackbarStatus.CLOSED Snackbar has closed, SnackbarStatus.OPENING Starts with the opening animation and ends with the full snackbar display, SnackbarStatus.CLOSING Starts with the closing animation and ends with the full snackbar dispose
SnackHoverState
Indicates if the mouse entered or exited
SnackPosition
Indicates if snack is going to start at the TOP or at the BOTTOM
SnackStyle
Indicates if snack will be attached to the edge of the screen or not
Transition

Constants

kBackGestureWidth → const double
kMaxMidSwipePageForwardAnimationTime → const int
DEPRECATED const double kMinFlingVelocity = 1; // Screen widths per second.
kMaxPageBackAnimationTime → const int

Properties

It replaces the Flutter Navigator, but needs no context. You can to use navigator.push(YourRoute()) rather Navigator.push(context, YourRoute());
no setter

Functions

extractRouteName(Route? route) String?
Extracts the name of a route based on it's instance type or null if not possible.
removeLastHistory(String? url) → void
setUrlStrategy() → void

Typedefs

GetPageBuilder = Widget Function()
GetRouteAwarePageBuilder<T> = Widget Function([SintPageRoute<T>? route])
OnHover = void Function(SintSnackBar snack, SnackHoverState snackHoverState)
OnTap = void Function(SintSnackBar snack)
SnackbarStatusCallback = void Function(SnackbarStatus? status)