dialog static method

GlassContainer dialog({
  1. Key? key,
  2. required Widget child,
  3. double? width,
  4. double? height,
  5. EdgeInsetsGeometry? padding,
  6. GlassType type = GlassType.frosted,
})

Implementation

static GlassContainer dialog({
  Key? key,
  required Widget child,
  double? width,
  double? height,
  EdgeInsetsGeometry? padding,
  GlassType type = GlassType.frosted,
}) {
  return GlassContainer(
    key: key,
    width: width,
    height: height,
    padding: padding ?? EdgeInsets.all(24.w),
    type: type,
    shape: GlassShape.roundedRectangle,
    radius: 20.r,
    shadowBlurRadius: 40.0,
    shadowSpreadRadius: 0.0,
    shadowOffset: const Offset(0, 20),
    child: child,
  );
}