ripple_wave 0.0.2 copy "ripple_wave: ^0.0.2" to clipboard
ripple_wave: ^0.0.2 copied to clipboard

Simple and easy to use ripple animation that can be wrapped in widgets to create beautiful ripple effects

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Ripple Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const DemoPage(),
    );
  }
}

///demo use of the ripple_wave package
class DemoPage extends StatelessWidget {
  const DemoPage({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Ripple Demo"),
      ),
      body: RippleWave(
        childTween: Tween(begin: 0.1, end: 1.0),
        color: Colors.deepPurpleAccent,
        repeat: false,
        child: const Icon(
          Icons.emoji_emotions,
          size: 100,
          color: Colors.white,
        ),
      ),
    );
  }
}
45
likes
0
pub points
93%
popularity

Publisher

unverified uploader

Simple and easy to use ripple animation that can be wrapped in widgets to create beautiful ripple effects

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on ripple_wave