r_router library

Classes

CustomPageRoute<T>
DatePickerHeader
Re-usable widget that displays the selected date (in large font) and the help text above it. [...]
PopupMenuButton<T>
Displays a menu when pressed and calls onSelected when the menu is dismissed because an item was selected. The value passed to onSelected is the value of the selected menu item. [...]
RRouter
RRouterInterceptor
interceptor if you want to interceptor router
RRouterInterceptorWrapper
interceptor wrapper
RRouterObserver
route observer
RRouterPageBuilderType
RRouterProvider
SearchDelegate<T>
Delegate for showSearch to define the content of the search page. [...]

Functions

showRAboutDialog({String applicationName, String applicationVersion, Widget applicationIcon, String applicationLegalese, List<Widget> children, RouteSettings routeSettings}) → void
showRCupertinoDialog<T>({WidgetBuilder builder, RouteSettings routeSettings}) Future<T>
showRCupertinoModalPopup<T>({WidgetBuilder builder, ImageFilter filter, bool semanticsDismissible}) Future<T>
Shows a modal iOS-style popup that slides up from the bottom of the screen. [...]
showRDatePicker({DateTime initialDate, DateTime firstDate, DateTime lastDate, DatePickerEntryMode initialEntryMode: DatePickerEntryMode.calendar, SelectableDayPredicate selectableDayPredicate, String helpText, String cancelText, String confirmText, Locale locale, RouteSettings routeSettings, TextDirection textDirection, TransitionBuilder builder, DatePickerMode initialDatePickerMode: DatePickerMode.day, String errorFormatText, String errorInvalidText, String fieldHintText, String fieldLabelText}) Future<DateTime>
Shows a dialog containing a Material Design date picker. [...]
showRDialog<T>({bool barrierDismissible: true, WidgetBuilder builder, RouteSettings routeSettings}) Future<T>
showRGeneralDialog<T>({RoutePageBuilder pageBuilder, bool barrierDismissible, String barrierLabel, Color barrierColor, Duration transitionDuration, RouteTransitionsBuilder transitionBuilder, RouteSettings routeSettings}) Future<T>
showRLicensePage({String applicationName, String applicationVersion, Widget applicationIcon, String applicationLegalese}) → void
Displays a LicensePage, which shows licenses for software used by the application. [...]
showRMenu<T>({RelativeRect position, List<PopupMenuEntry<T>> items, T initialValue, double elevation, String semanticLabel, ShapeBorder shape, Color color, bool captureInheritedThemes: true}) Future<T>
Show a popup menu that contains the items at position. [...]
showRModalBottomSheet<T>({WidgetBuilder builder, Color backgroundColor, double elevation, ShapeBorder shape, Clip clipBehavior, bool isScrollControlled: false, bool isDismissible: true}) Future<T>
Shows a modal material design bottom sheet. [...]
showRSearch<T>({SearchDelegate<T> delegate, String query: ''}) Future<T>
Shows a full screen search page and returns the search result selected by the user when the page is closed. [...]
showRTimePicker({TimeOfDay initialTime, TransitionBuilder builder, RouteSettings routeSettings}) Future<TimeOfDay>
Shows a dialog containing a material design time picker. [...]
transResult({String path, Map<String, dynamic> arguments, bool replace, bool clearTrace}) Future
transform result

Typedefs

PopupMenuCanceled() → void
Signature for the callback invoked when a PopupMenuButton is dismissed without selecting an item. [...]
PopupMenuItemBuilder<T>(BuildContext context) List<PopupMenuEntry<T>>
Signature used by PopupMenuButton to lazily construct the items shown when the button is pressed. [...]
PopupMenuItemSelected<T>(T value) → void
Signature for the callback invoked when a menu item is selected. The argument is the value of the PopupMenuItem that caused its menu to be dismissed. [...]
RRouterNotFountPage(String path) Widget
not fount page widget
RRouterRequestCallback(RouteSettings settings) RouteSettings
RRouterWidgetBuilder(dynamic params) Widget
widget builder

Exceptions / Errors

RRouterNotFoundException
not found route exception