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

outdated

An inkWell that splashes like Android. This repository contains a modified InkWell and InkSplash that is similar in the behavior of Android.

Androidish InkWell is an inkWell that splashes like Android. This repository contains a modified InkWell and InkSplash that is similar in the behavior of Android.

Getting started #

dependencies:
  androidish_ink_well: any


import 'package:androidish_ink_well/androidish_ink_well.dart';
import 'package:androidish_ink_well/androidish_ink_splash.dart';

Example of a button that splashed whole radius:

Theme(
  data: Theme.of(context).copyWith(splashFactory: AndroidishInkSplash.splashFactory),
  child: Material(
    color: Colors.grey.shade800,
    child: AndroidishInkWell(
      onTap: () {},
      child: MaterialButton(
        elevation: 12,
        child: Text(
          'SPLASH WHOLE RADIUS',
          style: TextStyle(fontSize: 24, color: Colors.white),
        ),
        padding: EdgeInsets.symmetric(horizontal: 48, vertical: 24),
      ),
    ),
  ),
);

Example of a button that splashed 50% of radius:

Theme(
      data: Theme.of(context).copyWith(splashFactory: AndroidishInkSplash.splashFactory),
      child: Material(
        color: Colors.grey.shade800,
        child: AndroidishInkWell(
          coverWholeRadius: false,
          child: MaterialButton(
            elevation: 12,
            child: Text(
              'SPLASH 50% OF RADIUS',
              style: TextStyle(fontSize: 24, color: Colors.white),
            ),
            padding: EdgeInsets.symmetric(horizontal: 48, vertical: 24),
          ),
          onTap: () {},
        ),
      ),
    );

Example #

3
likes
0
pub points
14%
popularity

Publisher

unverified uploader

An inkWell that splashes like Android. This repository contains a modified InkWell and InkSplash that is similar in the behavior of Android.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on androidish_ink_well