splash 1.0.0-nullsafety
splash: ^1.0.0-nullsafety copied to clipboard
This package contains a few InkSplash and InkRipple alternatives for a better UI
Splash #
This package contains a few alternatives for InkSplash.splashFactory and InkRipple.splashFactory.
List of available splash alternatives #
| Example | Usage |
|---|---|
| [No Splash] | NoSplash.splashFactory |
| [Line Splash] | LineSplash.splashFactory, LineSplash.customSplashFactory(paint: paint) |
| [Path Splash] | PathSplash.splashFactory(path), PathSplash.splashFactory(path, paint: paint, clip: false) |
| [Wave Splash] | WaveSplash.splashFactory, WaveSplash.customSplashFactory(strokeWidth: 30, blurStrength: 5) |
You can find an extensive example here. It shows simple usages and some more custom usages.
How do I use them? #
import 'package:splash/splash.dart';
final splashFactory = ...
MaterialApp(
theme: Theme(
splashFactory: splashFactory,
),
home: Scaffold(),
);