showRight static method

DialogShower showRight(
  1. Widget child, {
  2. bool? fixed,
  3. double? width,
  4. double? height,
  5. String? key,
})

Implementation

static DialogShower showRight(Widget child, {bool? fixed, double? width, double? height, String? key}) {
  DialogShower shower = show(child, width: width, height: height, key: key);
  if (fixed == true) {
    shower.alignment = Alignment.topRight;
    shower.padding = const EdgeInsets.only(top: -1, right: 16);
  } else {
    shower.alignment = Alignment.centerRight;
    shower.padding = const EdgeInsets.only(right: 16);
  }
  shower.transitionBuilder = ShowerTransitionBuilder.slideFromRight;
  return shower;
}