loading static method

Widget loading({
  1. String? message,
  2. GlassType type = GlassType.frosted,
  3. Color? color,
})

Glass loading indicator

Implementation

static Widget loading({
  String? message,
  GlassType type = GlassType.frosted,
  Color? color,
}) {
  return GlassContainer.card(
    type: type,
    child: Column(
      mainAxisSize: MainAxisSize.min,
      children: [
        CircularProgressIndicator(
          color: color ?? Colors.white,
          strokeWidth: 2.w,
        ),
        if (message != null) ...[
          SizedBox(height: 16.h),
          Text(
            message,
            style: AppTextThemes.bodyMedium(color: Colors.white),
            textAlign: TextAlign.center,
          ),
        ],
      ],
    ),
  );
}