Skip to content

Pilaba/Ripple_Touch

Repository files navigation

Ripple_Touch

Add a ripple touch effect when tap the screen

Installation

Add ripple_touch in your pubspec.yaml dependencies. And import it:

import 'package:ripple_touch/RippleManager.dart';

How to use

Initialize the overlay as soon as you want (preferably at the application start).

// Initialize
@override
void initState() {
  super.initState();
  Future.delayed(Duration.zero).then((value) => RippleManager().init(context));
}

// Destroy the thing
RippleManager().dispose();

For a more detail example please take a look at the example folder.

Demo

-

If something is missing, feel free to open a ticket or contribute!