v0.1.1
ripple_effect
在您的 Flutter 應用中,輕鬆從任何組件開始,向整個螢幕產生漣漪效果。
34喜歡 12近 30 天下載40Pub 分數
平台暫無資料
一個用於在您的應用中新增漣漪效果的 Flutter pub 包
以下為英文專案原文快照,最新內容請造訪 GitHub。
A easy way to achieve a ripple effect on you flutter app.

First you need to wrap your page/Scaffold with the RipplePage widget, the ripple efect will growth until this widget. Then
wrap with the RippleEffect where the animation should begin. When the animation should begin, call the RippleEffect.start method passing you callback method(often navigate to other page).
The RipplePage and RippleEffect widgets need their GlobalKeys respectively to work.
class Stateless extends StatelessWidget {
final pageKey = RipplePage.createGlobalKey();
final effectKey = RippleEffect.createGlobalKey();
@override
Widget build(BuildContext context) {
return RipplePage(
child: Scaffold(
body: Center(),
floatingActionButton: RippleEffect(
pageKey: pageKey,
effectKey: effectKey,
color: Colors.blue,
child: FloatingActionButton(
backgroundColor: Colors.blue,
onPressed: () =>
RippleEffect.start(effectKey, () => toNextPage(context)),
child: Icon(Icons.arrow_back),
),
)
),
);
}
}
依賴清單 3 項
{"sdk":"flutter"}^0.1.0{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗