splash 1.1.0 icon indicating copy to clipboard operation
splash: ^1.1.0 copied to clipboard

This package contains a few InkSplash and InkRipple alternatives for a better UI

Splash

pub.flutter-io.cn GitHub Workflow Status Sponsoring likes popularity pub points


💰 Using this library in a commercial product? Consider becoming a sponsor.

This package contains a few alternatives for InkSplash.splashFactory and InkRipple.splashFactory. In other words this are custom button pressed effects.

List of available alternatives #

ExampleUsage
Wave SplashWaveSplash.splashFactory, WaveSplash.customSplashFactory(strokeWidth: 30, blurStrength: 5)
Path SplashPathSplash.splashFactory(path), PathSplash.splashFactory(path, paint: paint, clip: false)
Line SplashLineSplash.splashFactory, LineSplash.customSplashFactory(paint: paint)
No SplashNoSplash.splashFactory

You can find an extensive example here. It shows simple usages and some more advances examples.

How do I use them? #

import 'package:splash/splash.dart';

final splashFactory = ...

MaterialApp(
  theme: Theme(
    splashFactory: splashFactory,
  ),
  home: Scaffold(), 
);
import 'package:splash/splash.dart';

final splashFactory = ...

OutlinedButton(
  child: const Text('OutlineButton'),
  onPressed: () {},
  style: OutlinedButton.styleFrom(
    splashFactory: splashFactory,
  ),
);

New features and ideas #

I would really appreciate pull request with new splash factories or good looking examples in the example app. You can do it here.

Author #

53
likes
120
pub points
81%
popularity

Publisher

verified publisher iconuekoetter.dev

This package contains a few InkSplash and InkRipple alternatives for a better UI

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on splash