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

bubble_lens 封面
套件詳情v2.0.0

bubble_lens

Flutter 可自訂的 Apple Watch UI 動畫重現

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2290
喜歡數
101
Pub 分數
155

安裝套件

flutter pub add bubble_lens

套件介紹

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

Bubble Lens 是一個 Flutter 套件,重現 Apple Watch 的標誌性 UI 動畫,提供可自訂的鏡頭效果,模擬放大的氣泡疊加層。它讓開發者能夠為元件添加動態、互動式的視覺反饋,非常適合觸控互動或焦點強調。此套件支援 Android、iOS、Web、macOS、Windows 與 Linux 多個平台,確保跨裝置行為一致。透過流暢的動畫與彈性的設定選項,提升需要直覺、觸覺回饋應用程式的使用者體驗。

適用情境

  • 互動式觸覺反饋
  • UI中的焦點高亮
  • Apple Watch 風格的動畫
  • 增強的手勢識別
  • 移動應用中的視覺效果
  • 跨平台動畫疊加

主要特色

  • 可自訂的鏡片尺寸與形狀
  • 平滑縮放動畫
  • 支援多個平台
  • 可設定的不透明度與模糊
  • 基於手勢的激活
  • 響應式設計整合

適合對象

  • 尋求蘋果手表風格使用者介面體驗的開發者
  • 需要細微互動反饋的應用
  • 專注於微互動的設計師
  • 跨平台應用開發者
  • UI/UX 愛好者
  • 原型設計互動式介面

使用建議

  • 使用多個鏡頭時的效能影響
  • 需要仔細調整以獲得最佳使用者體驗
  • 可能不適合所有設計美學
  • 超出核心動畫之外的自訂功能有限
  • 建議節制使用,以免造成分心
  • 依賴於平台特定的渲染功能

原始 README

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

Bubble Lens

pub package

A reproduction of the Apple Watch UI animation

Example

Usage

Import the package
import 'package:bubble_lens/bubble_lens.dart';
Use the package
BubbleLens(
    width: 250,
    height: 250,
    widgets: [
        Container(
            width: 100,
            height: 100,
            color: Colors.red
        ),
        ...
    ]
);

Required Parameters

Prop Type Default Description
width double N/A Width of the container.
height double N/A Height of the container.
widgets List N/A List of widgets to display.

Optional Parameters

Prop Type Default Description
size double 100 Maximum size of a widget.
paddingX double 10 Horizontal padding between widgets.
paddingY double 0 Vertical padding between widgets.
duration Duration Duration(milliseconds: 100) Animation's duration.
radius Radius Radius.circular(999) Widget's radius.
highRatio double 0 High ratio, should be >= 0.
lowRatio double 0 Low ratio, should be >= 0.

Example

Find the example wiring in the Bubble Lens example application.

Details

See the bubble_lens.dart for more details.

Issues and feedback

Please file issues to send feedback or report a bug. Thank you!

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。