Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ueman/splash
Contains alternative Flutter splash factories
https://github.com/ueman/splash
button dart flutter flutter-ui hacktoberfest splash splash-alternatives
Last synced: 3 months ago
JSON representation
Contains alternative Flutter splash factories
- Host: GitHub
- URL: https://github.com/ueman/splash
- Owner: ueman
- License: other
- Created: 2020-07-02T15:54:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T21:50:20.000Z (4 months ago)
- Last Synced: 2024-09-18T02:37:10.816Z (4 months ago)
- Topics: button, dart, flutter, flutter-ui, hacktoberfest, splash, splash-alternatives
- Language: Dart
- Homepage: https://pub.dev/packages/splash
- Size: 5.6 MB
- Stars: 21
- Watchers: 3
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
---
💰 Using this library in a commercial product? Consider [becoming a sponsor](https://github.com/ueman#sponsor-me).
This package contains a few alternatives for [InkSplash.splashFactory](https://api.flutter.dev/flutter/material/InkSplash/splashFactory-constant.html)
and [InkRipple.splashFactory](https://api.flutter.dev/flutter/material/InkRipple/splashFactory-constant.html). In other words this are custom button pressed effects.## List of available alternatives
| Example | Usage |
|- |- |
| ![Wave Splash](https://raw.githubusercontent.com/ueman/splash/master/img/wave_splash.gif "Wave Splash") | `WaveSplash.splashFactory`, `WaveSplash.customSplashFactory(strokeWidth: 30, blurStrength: 5)` |
| ![Path Splash](https://raw.githubusercontent.com/ueman/splash/master/img/path_splash.gif "Path Splash") | `PathSplash.splashFactory(path)`, `PathSplash.splashFactory(path, paint: paint, clip: false)` |
| ![Line Splash](https://raw.githubusercontent.com/ueman/splash/master/img/line_splash.gif "Line Splash") | `LineSplash.splashFactory`, `LineSplash.customSplashFactory(paint: paint)` |
| ![No Splash](https://raw.githubusercontent.com/ueman/splash/master/img/no_splash.gif "No Splash") | `NoSplash.splashFactory` |You can find an extensive example [here](https://github.com/ueman/splash/blob/master/example/lib/main.dart).
It shows simple usages and some more advances examples.## How do I use them?
```dart
import 'package:splash/splash.dart';final splashFactory = ...
MaterialApp(
theme: Theme(
splashFactory: splashFactory,
),
home: Scaffold(),
);
```
```dart
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](https://github.com/ueman/splash).
## Author
- Jonas Uekötter [GitHub](https://github.com/ueman) [Twitter](https://twitter.com/ue_man)