card static method

GlassContainer card({
  1. Key? key,
  2. required Widget child,
  3. EdgeInsetsGeometry? padding,
  4. EdgeInsetsGeometry? margin,
  5. VoidCallback? onTap,
  6. GlassType type = GlassType.frosted,
})

Implementation

static GlassContainer card({
  Key? key,
  required Widget child,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  VoidCallback? onTap,
  GlassType type = GlassType.frosted,
}) {
  return GlassContainer(
    key: key,
    padding: padding ?? EdgeInsets.all(16.w),
    margin: margin,
    onTap: onTap,
    type: type,
    shape: GlassShape.roundedRectangle,
    radius: 16.r,
    child: child,
  );
}