showLoading static method

DialogShower showLoading({
  1. Widget? widget,
  2. String? text = 'Loading',
  3. bool isRotating = true,
  4. bool dismissible = false,
  5. AlterIconTextOptions? onOptions,
  6. bool? isPaintAnimation,
  7. bool? isPaintStartStiff,
  8. double? side,
  9. double? stroke,
  10. Duration? duration,
  11. Color? colorBig,
  12. Color? colorSmall,
})

Implementation

static DialogShower showLoading({
  Widget? widget,
  String? text = 'Loading',
  bool isRotating = true,
  bool dismissible = false,
  AlterIconTextOptions? onOptions,
  // --------- For Loading Painter -----------
  bool? isPaintAnimation,
  bool? isPaintStartStiff,
  double? side,
  double? stroke,
  Duration? duration,
  Color? colorBig,
  Color? colorSmall,
  // --------- For Loading Painter -----------
}) {
  widget ??= PainterWidgetUtil.getOneLoadingCircleWidget(
    isPaintAnimation: isPaintAnimation,
    isPaintStartStiff: isPaintStartStiff,
    side: side,
    stroke: stroke,
    duration: duration,
    colorBig: colorBig,
    colorSmall: colorSmall,
  );
  widget = isRotating ? RotateWidget(child: widget) : widget;
  return showIconText(icon: widget, text: text, onOptions: onOptions)..barrierDismissible = dismissible;
}