v0.1.2
splash_tap
點擊其子組件時會產生有趣的 splash 效果
15喜歡 30近 30 天下載30Pub 分數
平台暫無資料
點擊時在子組件上創建疊加水花效果的 Flutter 效果組件。
以下為英文專案原文快照,最新內容請造訪 GitHub。
Makes an interesting splash effect when tapping its child widget.
To use this plugin, add splash_tap as a dependency in your pubspec.yaml file.
The color can be set with the splashColor property. The splash size is dependent on the size of the child widget passed in - which is constrained by the minRadius and maxRadius parameters.
import 'package:flutter/material.dart';
import 'package:splash_tap/splash_tap.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Splash Tap Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: SplashTapDemo(),
);
}
}
class SplashTapDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Splash(
onTap: () {},
child: Text(
'Splash!',
style: TextStyle(fontSize: 32),
),
),
),
);
}
}
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗