Flutter button widget, that simulates ripple effect when button is pressed.

Features

img.png

Usage

class Example extends StatelessWidget {
  const Example({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => AnimatedRipple(
    size: const Size.fromRadius(300),
    numberOfRipples: 7,
    duration: const Duration(seconds: 1),
    color: ThemeWidget.of(context).theme.mainColor,
    secondaryColor: ThemeWidget.of(context).theme.secondaryColor,
    rippleEffect: RippleEffect.speedUpOnTap,
  );
}

Libraries

animated_ripple