showCenter static method

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

Shower basic usage in wrapper

Implementation

static DialogShower showCenter(Widget child, {bool? fixed, double? width, double? height, String? key}) {
  DialogShower shower = show(child, fixed: fixed, width: width, height: height, key: key);
  shower.transitionBuilder = ShowerTransitionBuilder.fadeIn;
  return shower;
}