Zoom Tap Animation 是一個 Flutter 套件,當使用者長按項目時會產生動態縮放效果,模擬 App Store 的 Today 標籤頁中的互動行為。它透過在觸控互動期間提供視覺反饋來提升使用者參與度。此動畫流暢且可自訂,適用於按鈕、卡片或任何互動式 UI 元素。該套件以效能與跨平台相容性為設計重點,可在 Android、iOS、Web、macOS、Windows 與 Linux 上順暢運作。
適用情境
互動式應用程式圖示
動畫卡片點擊
增強的按鈕反饋
今日標籤式介面
用戶參與元素
觸控互動強調
主要特色
長按觸發縮放
平滑縮放放大與縮小
跨平台支援
可自訂的動畫持續時間
與現有組件的輕鬆整合
輕量且高效
適合對象
尋求引人入勝的觸控效果的開發者
UI 設計師增強互動性
基於手勢的導航應用
需要類似 App Store 動畫的專案
Flutter 應用針對多個平台
使用建議
可能需要調整以獲得最佳時間
不適合靜態或非互動式內容
最佳搭配清晰的視覺目標使用
如果未妥善管理,可能與其他手勢衝突
限制為輕觸/長按觸發
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Zoom Tap Animation
Zoom Tap Animation is is a package that allows you to make an zoom animation effect similar to App Store's (ios app) items in Today tab, when you long tap on some item, it start to zoom in then it zoom out when you release it.
The idea is inspired from App Store app in Today tab where you can long tap on some item and it start to zoom in then zoom out as shown in the screenshot below.
Example:
Check out the example project in the example folder.