ueman/splash
包含替代的 Flutter 啟動畫面工廠
- Stars
- 22
- Forks
- 0
- 最近推送(UTC)
- 2024年10月1日
- 專案狀態
- 已封存
語言DartSwiftKotlinObjective-C
技術主題
使用的依賴
依賴清單 2 項
- flutter
{"sdk":"flutter"} - flutter_test開發依賴
{"sdk":"flutter"}
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
展開 / 收合專案 README
Splash
pub.dev 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
| Example | Usage |
|---|---|
| Wave Splash | WaveSplash.splashFactory, WaveSplash.customSplashFactory(strokeWidth: 30, blurStrength: 5) |
| Path Splash | PathSplash.splashFactory(path), PathSplash.splashFactory(path, paint: paint, clip: false) |
| Line Splash | LineSplash.splashFactory, LineSplash.customSplashFactory(paint: paint) |
| No Splash | NoSplash.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.