androidish_ink_well 2.0.0 copy "androidish_ink_well: ^2.0.0" to clipboard
androidish_ink_well: ^2.0.0 copied to clipboard

An ink splash that's similar to material design examples.

In version 1, the ripple effect would start not on tap down but on release. In version 2, it has been changed to the original behaviour, but with an ink splash that is faster, fades in and with a radius that is not zero.

Getting started #

dependencies:
  androidish_ink_well: ^2.0.0

import 'package:androidish_ink_well/material_ink_splash.dart';

Add splashFactory: MaterialInkSplash.splashFactory to Theme.

import 'package:flutter/material.dart';
import 'package:androidish_ink_well/material_ink_splash.dart';

void main() => runApp(MyApp());

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Theme(
          data: Theme.of(context)
              .copyWith(splashFactory: MaterialInkSplash.splashFactory),
          child: Center(
            child: Material(
              child: MaterialButton(
                child: Text('BUTTON'),
                onPressed: () {},
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Example #

3
likes
20
pub points
20%
popularity

Publisher

unverified uploader

An ink splash that's similar to material design examples.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on androidish_ink_well