v1.1.0flutter_bounce
一个高效的 Flutter 包,用于在点击时对包裹的 widget 实现弹跳动画。它适用于 iOS 和 Android 两大移动平台。
162喜欢 1150近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
这是一个用于在小部件上实现点击弹跳效果的 Flutter 包
以下为英文项目原文快照,最新内容请访问 GitHub。
Flutter AnimationController and Tranform.scale() Widget.flutter_widget is not the copy paste of bouncing_widget, it works differently. Without limitations, and the functionality works differently, based upon the duration, and not on the scaleFactor.scaleFactor at all, which is required in the widgetflutter_bounce functionality. However, I have taken motivation from the limitations of the bouncing_widgetTo use this plugin, add flutter_bounce as a dependency in your pubspec.yaml file.
This is how the Bounce Widget works when wrapped around the widget. The below shows Bounce being used in both the scenario:

import 'package:flutter_bounce/flutter_bounce.dart';
Bounce.child, duration and onPressed is mandatory in the widget.onPressed and duration can have null in the widget. By default duration is set to 100 milliseconds.milliseconds for best resultBounce(
duration: Duration(milliseconds: 110),
onPressed: (){ YOUR_FUNCTION },
child: YOUR_WIDGET
)
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗