show static method

void show(
  1. BuildContext context, {
  2. double? size,
  3. Color? color,
  4. Color? iconColor,
  5. String? text,
  6. double? textSize,
  7. Color? textColor,
  8. double? radius,
  9. LoadingType? loadingType = LoadingType.sword,
})

Implementation

static void show(BuildContext context,
    {double? size,
    Color? color,
    Color? iconColor,
    String? text,
    double? textSize,
    Color? textColor,
    double? radius,
    LoadingType? loadingType = LoadingType.sword}) {
  showDialog(
    barrierDismissible: true,
    context: context,
    builder: (ctx) => Container(
      color: Colors.transparent,
      child: KLoading(
        size: size,
        color: color,
        iconColor: iconColor,
        text: text,
        textColor: textColor,
        textSize: textSize,
        loadingType: loadingType,
        radius: radius,
      ),
    ),
  );
}