multi_color_ripple 1.2.1
multi_color_ripple: ^1.2.1 copied to clipboard
A beautiful, lightweight, animated multi-color ripple widget for Flutter. Pure Dart, no native code — works on Android, iOS, web, Windows, macOS and Linux.
import 'package:flutter/material.dart';
import 'package:multi_color_ripple/multi_color_ripple.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Multi Color Ripple Example',
theme: ThemeData(colorSchemeSeed: Colors.deepPurple, useMaterial3: true),
home: const RippleExamplePage(),
);
}
}
class RippleExamplePage extends StatelessWidget {
const RippleExamplePage({super.key});
@override
Widget build(BuildContext context) {
// Full-bleed and responsive: the combined glow + crisp rings fill the
// whole screen and fade into the dark backdrop at the edges.
return const Scaffold(
body: MultiColorRipple(
duration: Duration(seconds: 5),
child: SizedBox.shrink(),
),
);
}
}