搜尋套件、儲存庫與 APP 分類

flutter_bounceable 封面
套件詳情v1.2.0

flutter_bounceable

一個簡單、互動式且可自訂的點擊彈跳動畫,可包裝在您喜歡的任何組件上。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
3730
喜歡數
226
Pub 分數
160

安裝套件

flutter pub add flutter_bounceable

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

flutter_bounceable 是一個輕量級的 Flutter 套件,可在任何組件被點擊時加入平滑且互動式的彈跳動畫。它透過最少的設定提供視覺回饋,增強使用者體驗。此動畫在強度、持續時間和縮放方面皆可自訂,讓開發人員能根據應用程式的設計語言調整效果。它可在所有主要平台(包含 Android、iOS、Web、macOS、Windows 和 Linux)上順暢運作。

適用情境

  • 為按鈕添加觸覺反饋
  • 增強遊戲中的UI互動性
  • 改進觸控手勢的使用者體驗
  • 為教育類應用程式創建有趣的動畫
  • 自訂表單和輸入項中的觸控效果

主要特色

  • 簡單的點擊彈跳效果
  • 高度可自訂的動畫參數
  • 適用於任何小部件
  • 跨平台相容性
  • 最小化樣板程式碼
  • 跨裝置的順暢效能

適合對象

  • 尋求快速 UI 增強的開發者
  • 專注於微互動的設計師
  • 需要直覺觸控反饋的應用程式
  • 具有趣味性或遊戲化美學的專案
  • 重視開發者生產力的團隊

使用建議

  • 可能不適合極簡設計風格
  • 對複雜嵌套小部件的效能影響
  • 僅限基於點擊的互動
  • 動畫行為可能需要針對不同螢幕尺寸進行調整
  • 不適合非互動元素

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_bounceable

  • A simple, interactive and customizable on-tap bounce animation that can be wrapped on any widgets that you like.
  • You can create custom bouncing animation similarly to apps like Spotify and App Store.
  • Package similar to flutter_bounce and bouncing_widget.

Advantages:

  • Truly simple and efficient.
  • Customizable bouncing animation using curve, scaleFactor and duration.
  • Options to control onTap, onTapUp, onTapDown, onTapCancel and onLongPress.
  • Enable and disable onTap option.
  • Not sticky when scrolling.
  • Does not trigger multiple onTap events when tapped on multiple Bounceable widget simultaneously.

🚀 Installing:

In your pubspec.yaml

dependencies:
  flutter_bounceable: ^1.2.0
import 'package:flutter_bounceable/flutter_bounceable.dart';

Usage:

Just wrap on any widget that you like, it just works🙂:

Bounceable(
  onTap: () {},
  child: YourWidget(),
);

Demo:

Contributing:

Feature requests and pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Support:

"Buy Me A Coffee"

所屬分類

原始碼儲存庫

使用此套件的專案