showTop static method

DialogShower showTop(
  1. Widget child, {
  2. double? width,
  3. double? height,
  4. String? key,
})

Implementation

static DialogShower showTop(Widget child, {double? width, double? height, String? key}) {
  DialogShower shower = show(child, width: width, height: height, key: key);
  shower.alignment = Alignment.topCenter;
  shower.padding = const EdgeInsets.only(top: 16);
  shower.transitionBuilder = ShowerTransitionBuilder.slideFromTop;
  return shower;
}