slideUp<T extends Widget> static method

void slideUp<T extends Widget>(
  1. T pageBuilder(), {
  2. Duration duration = _defaultDuration,
  3. Curve curve = _defaultCurve,
})

Slide from Bottom (modal / sheet style)

Implementation

static void slideUp<T extends Widget>(
  T Function() pageBuilder, {
  Duration duration = _defaultDuration,
  Curve curve = _defaultCurve,
}) {
  Get.to(
    pageBuilder(),
    transition: Transition.downToUp,
    duration: duration,
    curve: curve,
    opaque: true, // prevents background repaint
    fullscreenDialog: true, // reduces horizontal shift
  );
}