ButtonSplashStyle.glow constructor

ButtonSplashStyle.glow({
  1. Color? glowColor,
  2. double glowOpacity = 0.15,
  3. BorderRadius? borderRadius,
  4. WidgetStateProperty<Color?>? overlayColor,
})

Soft glow effect that radiates from touch point Creates a softer, more organic feel

Implementation

factory ButtonSplashStyle.glow({
  Color? glowColor,
  double glowOpacity = 0.15,
  BorderRadius? borderRadius,
  WidgetStateProperty<Color?>? overlayColor,
}) {
  return ButtonSplashStyle._(
    type: ButtonSplashType.glow,
    splashColor: glowColor,
    splashOpacity: glowOpacity,
    borderRadius: borderRadius,
    splashFactory: InkSparkle.splashFactory,
    overlayColor: overlayColor,
  );
}