loading method
void
loading({
- Widget? widget,
- Duration? duration,
- bool opaque = false,
- bool maintainState = false,
- bool replace = true,
- String message = "",
- bool passTouch = false,
- Color maskColor = OverlayConst.maskColor,
- Color frameColor = Colors.transparent,
- TextStyle textStyle = OverlayConst.textStyle,
- double progressSize = 13,
- Color progressColor = Colors.white,
- double progressStrokeWidth = 2,
- Color progressBackgroundColor = Colors.transparent,
Implementation
void loading({
Widget? widget,
Duration? duration,
bool opaque = false,
bool maintainState = false,
bool replace = true,
String message = "",
bool passTouch = false,
Color maskColor = OverlayConst.maskColor,
Color frameColor = Colors.transparent,
TextStyle textStyle = OverlayConst.textStyle,
double progressSize = 13,
Color progressColor = Colors.white,
double progressStrokeWidth = 2,
Color progressBackgroundColor = Colors.transparent,
}) {
var widgetView = widget;
if (widget == null) {
widgetView = buildDefLoadingOverlay(
context,
message: message,
passTouch: passTouch,
maskColor: maskColor,
frameColor: frameColor,
textStyle: textStyle,
progressSize: progressSize,
progressColor: progressColor,
progressStrokeWidth: progressStrokeWidth,
progressBackgroundColor: progressBackgroundColor,
);
}
_loadingTier.show(context, widgetView!,
duration: duration,
opaque: opaque,
maintainState: maintainState,
replace: replace);
}