LitRouteController class

The LitRouteController enables navigation between multiple screens without the need to specify a particular PageRoute on every navigation as it is done by using Navigator.push. Pushing the PageRoute into the widget stack is done by calling the either pushCupertinoWidget

Constructors

LitRouteController(BuildContext context)
const

Properties

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

Methods

clearNavigationStack() → void
closeDialog() → void
Closes the currently displayed Dialog, by popping it from the widget tree.
dicardAndExit() → void
Closes the displayed dialog and navigates back to the previous screen by popping the lastest two widgets from the stack.
Navigates back to the previous screen.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop() → void
Pop the latest added Widget from the widget stack, enabling the user to navigate back.
pushCupertinoWidget(Widget pushedWidget) → void
Navigates to another screen by pushing the provided widget into the widget stack using the MaterialPageRoute animation.
pushMaterialWidget(Widget pushedWidget) → void
Navigates to another screen by pushing the provided widget into the widget stack using the MaterialPageRoute animation.
replaceCurrentCupertinoWidget({required Widget newWidget}) → void
Navigate to another screen and remove the latest (current) Widget from the stack. This can be done to avoid multiple screens stacking up and to avoid the need of tapping the back button multiple times to e.g. go back to the home screen.
replaceCurrentMaterialWidget({required Widget newWidget}) → void
Navigate to another screen and remove the latest (current) Widget from the stack. This can be done to avoid multiple screens stacking up and to avoid the need of tapping the back button multiple times to e.g. go back to the home screen.
resetFocus() → void
Request the focus to collapse the soft keyboard.
showDialogWidget(Widget dialog) → void
Shows the provided dialog Widget.
toString() String
A string representation of this object.
inherited

Operators

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