showLeft static method

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

Implementation

static DialogShower showLeft(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.topLeft;
    shower.padding = const EdgeInsets.only(top: -1, left: 16);
  } else {
    shower.alignment = Alignment.centerLeft;
    shower.padding = const EdgeInsets.only(left: 16);
  }
  shower.transitionBuilder = ShowerTransitionBuilder.slideFromLeft;
  return shower;
}