getHeaderGlow static method

OverlayGlow getHeaderGlow(
  1. BuildContext context, {
  2. Color? color,
  3. Rect? rect,
  4. double? blurRadius,
  5. double height = 25,
})

Implementation

static OverlayGlow getHeaderGlow(
  BuildContext context, {
  Color? color,
  Rect? rect,
  double? blurRadius,
  double height = 25,
}) {
  return OverlayGlow(
    boxShadow: BoxShadow(
      blurRadius: blurRadius ?? 100,
      color: color ?? context.colorScheme.primary.withOpacity(0.75),
    ),
    rect: rect ?? Rect.fromLTWH(0, 0, context.screenWidth, height),
  );
}