nice_ripple 0.0.1 copy "nice_ripple: ^0.0.1" to clipboard
nice_ripple: ^0.0.1 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),
        onTap: () {
          // your code here
        },
        child: const Text(
          "Nice Ripple",
          style: TextStyle(fontSize: 20),
        ),
      ),
    );
  }
}
20
likes
0
pub points
64%
popularity

Publisher

verified publishernimusoftlabs.com

Nice Ripple: A Customizable Ripple Effect Package for Flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on nice_ripple