showLoading static method
DialogShower
showLoading(
{ - Widget? widget,
- String? text = 'Loading',
- bool isRotating = true,
- bool dismissible = false,
- AlterIconTextOptions? onOptions,
- bool? isPaintAnimation,
- bool? isPaintStartStiff,
- double? side,
- double? stroke,
- Duration? duration,
- Color? colorBig,
- 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;
}