v2.0.0bouncing_widget
一個可讓您在組件上新增彈跳動畫的元件。
216喜歡 1900近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個可讓您在組件上新增彈跳動畫的元件。
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A widget that enables you to add a bouncing animation on a widget.
https://raw.githubusercontent.com/ThomasEcalle/bouncing_widget/master/documentation/gif_bouncing.gif
You just have to encapsulate the widget of your choice with a BouncingWidget.
You may also use a scaleFactor to customize the scaling effect as in the gif example.
Or even customize the animation's duration with the duration parameter (200 milliseconds by default).
BouncingWidget(
duration: Duration(milliseconds: 100),
scaleFactor: 1.5,
onPressed: () {
print("onPressed");
},
child: Text(
"Hello !",
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 35,
),
),
),