nice_ripple 0.0.3 copy "nice_ripple: ^0.0.3" to clipboard
nice_ripple: ^0.0.3 copied to clipboard

Nice Ripple: A Customizable Ripple Effect Package for Flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:nice_ripple/nice_ripple.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: NiceRippleExample(),
    );
  }
}

class NiceRippleExample extends StatefulWidget {
  const NiceRippleExample({Key? key}) : super(key: key);

  @override
  State<NiceRippleExample> createState() => _NiceRippleExampleState();
}

class _NiceRippleExampleState extends State<NiceRippleExample> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: NiceRipple(
        rippleColor: Colors.red,
        radius: 100,
        rippleShape: BoxShape.circle,
        duration: const Duration(seconds: 3),
        curve: Curves.easeInOut,
        onTap: () {
          // your code here
        },
      ),
    );
  }
}
20
likes
130
pub points
69%
popularity

Publisher

verified publishernimusoftlabs.com

Nice Ripple: A Customizable Ripple Effect Package for Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on nice_ripple