slideRight<T extends Widget> static method
void
slideRight<T extends Widget>(})
Slide from Right (iOS-style)
Implementation
static void slideRight<T extends Widget>(
T Function() pageBuilder, {
Duration duration = _defaultDuration,
Curve curve = _defaultCurve,
}) {
Get.to(
pageBuilder(),
transition: Transition.rightToLeft,
duration: duration,
curve: curve,
opaque: true, // prevents background repaint
fullscreenDialog: true, // reduces horizontal shift
);
}