UNavigator class abstract

Constructors

UNavigator.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

canPop bool
no setter
isAndroid bool
no setter
isIOS bool
no setter
mediaQuery MediaQueryData
no setter
theme ThemeData
no setter

Static Methods

back<T>([T? result]) → void
Pop with optional result
bottomSheet<T>(Widget child, {bool isScrollControlled = true, bool useSafeArea = true, double? elevation, Color? backgroundColor, ShapeBorder? shape, Clip? clipBehavior, BoxConstraints? constraints, VoidCallback? onDismiss}) Future<T?>
Adaptive bottom sheet
confirm({required String title, required String message, String confirmText = "OK", String cancelText = "Cancel", bool destructive = false, VoidCallback? onDismiss, VoidCallback? onCancel, VoidCallback? onConfirm}) → void
Confirmation dialog with actions
dialog<T>(Widget child, {bool barrierDismissible = true, bool useRootNavigator = true, Color? barrierColor, RouteSettings? settings, VoidCallback? onDismiss}) Future<T?>
Adaptive dialog (Material/Cupertino)
dismissOverlay() → void
draggableSheet<T>(Widget child, {double initialChildSize = 0.5, double minChildSize = 0.25, double maxChildSize = 0.9, bool expand = false, bool useRootNavigator = true, VoidCallback? onDismiss}) Future<T?>
Draggable scrollable sheet
error({required String message, Duration duration = const Duration(seconds: 4), String? actionLabel, VoidCallback? onAction, VoidCallback? onDismiss}) → void
Error notification
fullScreenDialog<T>(Widget page, {RouteTransitions transition = RouteTransitions.upToDown, VoidCallback? onDismiss}) Future<T?>
Full-screen dialog
off<T>(Widget page, {RouteTransitions transition = RouteTransitions.fade, RouteSettings? settings, VoidCallback? onDismiss}) Future<T?>
Replace current route
offAll(Widget page, {RouteTransitions transition = RouteTransitions.fade, RouteSettings? settings, VoidCallback? onDismiss}) → void
Clear all routes and start fresh
push<T>(Widget page, {bool fullscreenDialog = false, bool preventDuplicates = true, RouteTransitions transition = RouteTransitions.rightToLeft, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeOut, RouteSettings? settings}) Future<T?>
Push with optional custom transition
showOverlay({required Widget child, Duration duration = const Duration(seconds: 3), Alignment alignment = Alignment.topCenter, EdgeInsets padding = const EdgeInsets.all(20), VoidCallback? onDismiss}) → void
snackbar({required String message, String? title, Duration duration = const Duration(seconds: 4), Color? backgroundColor, Color? textColor, SnackBarAction? action, DismissDirection dismissDirection = DismissDirection.down, EdgeInsets? margin, double? width, VoidCallback? onDismiss}) → void
Standard snackbar
toast({required String message, Duration duration = const Duration(seconds: 2), Color? backgroundColor, Color? textColor, double borderRadius = 20, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 12), EdgeInsets margin = const EdgeInsets.only(bottom: 30), VoidCallback? onDismiss}) → void
Floating toast-style notification