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 ↗