Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


Splash


pub.dev
GitHub Workflow Status
Sponsoring
likes
popularity
pub points

---

💰 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)