loading static method
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,
),
],
],
),
);
}