touch_ripple_effect 1.0.1 copy "touch_ripple_effect: ^1.0.1" to clipboard
touch_ripple_effect: ^1.0.1 copied to clipboard

outdated

A new flutter plugin for any flutter widgets to add touch ripple effect.

example/lib/main.dart

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


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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  
  @override
  void initState() {
    super.initState();
    
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: TouchRippleEffect(
            backgroundColor: Colors.white,
            rippleColor: Colors.black45,
            child: Container(width: 150, color: Colors.transparent, alignment: Alignment.center, height: 80,child: Text("Click me", style: TextStyle(color: Colors.black),),),
          ),
        ),
      ),
    );
  }
}
23
likes
30
pub points
91%
popularity

Publisher

verified publisherpresswink.com

A new flutter plugin for any flutter widgets to add touch ripple effect.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on touch_ripple_effect