androidish_ink_well 2.0.0

Flutter Android iOS web

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 #

2
likes
90
pub points
62%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

martinzimdahl@habitory.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on androidish_ink_well