qlevar_router library

Classes

ParamValue
Class represent the param value
QCupertinoPage
This type will set the page type as CupertinoPage
QCustomPage
Give a custom animation for the page.
QDeclarative
Declarative Router Navigate between your pages with a state update
QDeclarativeController
QDRoute
Define declarative route used with QDeclarative
QFadePage
QKey
QMaterialPage
This type will set the page type as MaterialPage
QMiddleware
QMiddleware is a class that can be used to add middleware to a route you can use it to to run code on different route events like onEnter, onExit, onMatch
QMiddlewareBuilder
QMiddlewareBuilder is a class that can be used to add middleware to a route it can be used for quick creation of middleware
QNameRedirect
use this object with QMiddleware.redirectGuardToName to redirect to page with name and params
QPage
Set the page type for this route you can use QMaterialPage, QCupertinoPage or QPlatformPage The default is QPlatformPage
QParams
The params for the route
QPlatformPage
This type will determinate the page type based on the platform and gives QMaterialPage or QCupertinoPage
QRContext
QRoute
Define a route
QRouteInformationParser
The parser for QRouter
QRouter
A Router used with Nested Navigation to show the child for the navigation
QRouterDelegate
Qlevar Router implementation for RouterDelegate
QSlidePage
RouteMock
This class is used for testing,so you don't have to add routes to your test Just set the QR.settings.mockRoute and the package will use this RouteMock to check if the test is navigated to a page or not.
RouterState<T extends StatefulWidget>

Enums

PageAlreadyExistAction
Use this to define what to do when page already is in the stack
PopResult
This represent the pop result

Extensions

QRNavigation on QRContext

Constants

defaultDuration → const Duration

Properties

QR QRContext
final

Typedefs

DeclarativeBuilder = List<QDRoute> Function()
The Declarative page builder it gives you the state and take the pages to show
PageBuilder = Widget Function()
PageWithChildBuilder = Widget Function(QRouter)
PageWithDeclarativeBuilder = Widget Function(QKey)
ParamChanged = dynamic Function(Object?, Object?)