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

drag_ball 封面
套件詳情v2.0.1

drag_ball

一個類似於 iPhone 上 AssistiveTouch 的 Flutter 套件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1280
喜歡數
53
Pub 分數
150

安裝套件

flutter pub add drag_ball

套件介紹

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

DragBall 是一個 Flutter 套件,提供類似 iPhone 上 AssistiveTouch 功能的浮動可拖曳小部件。它允許使用者自由地在螢幕上移動圓形按鈕,輕鬆存取常用動作,而不會遮蔽介面。非常適合用於無障礙功能或快速導航,支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。此套件輕量且可自訂,讓開發者能以最少設定將持續的互動元件整合至應用程式中。

適用情境

  • 無障礙功能增強
  • 快速操作存取
  • 自定義浮動控制項
  • 基於手勢的導航
  • 應用實用工具
  • 以行動裝置為首的使用者介面設計

主要特色

  • 可拖曳的浮動球
  • 跨平台支援
  • 最小設定
  • 可自訂外觀
  • 平滑動畫
  • 響應式互動

適合對象

  • 開發可存取應用程式的開發者
  • 尋求互動元件的UI設計師
  • 需要持續浮動按鈕的應用程式
  • 針對多個平台的專案
  • 快速存取介面的原型設計

使用建議

  • 可能需要仔細放置以避免介面雜亂
  • 對低階裝置的效能影響
  • 每螢幕僅限一個活動球
  • 不適用於複雜互動
  • 部分平台需要使用者權限
  • 與應用主題的設計一致性

原始 README

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

cover

flutter badge paypal
qr-paypal

A flutter package, inspiration Indonesian e-commerce widget or similiar AssistiveTouch on Iphone.

📌 Note

  • Put [DragBall] on top the Scaffold

Example

Dragball(
  ball: const FlutterLogo(
    size: 70,
  ),
  initialPosition: DragballPosition.defaultPosition(),
  onTap: () => debugPrint('Dragball Tapped'),
  onPositionChanged: (DragballPosition position) =>
      debugPrint(position.toString()),
  child: Scaffold(
    appBar: AppBar(
      title: const Text('Dragball Example'),
    ),
    body: ListView.builder(
      padding: const EdgeInsets.all(20),
      itemBuilder: (BuildContext context, int index) {
        return Padding(
          padding: const EdgeInsets.only(bottom: 20),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: const [
              SizedBox(
                width: 100,
                height: 30,
                child: DecoratedBox(
                  decoration: BoxDecoration(
                    color: Color(0xFFE5E5E5),
                    borderRadius: BorderRadius.all(Radius.circular(15)),
                  ),
                ),
              ),
              SizedBox(height: 16),
              SizedBox(
                width: double.infinity,
                height: 160,
                child: DecoratedBox(
                  decoration: BoxDecoration(
                    color: Color(0xFFE5E5E5),
                    borderRadius: BorderRadius.all(Radius.circular(15)),
                  ),
                ),
              ),
              SizedBox(height: 16),
              SizedBox(
                width: 200,
                height: 30,
                child: DecoratedBox(
                  decoration: BoxDecoration(
                    color: Color(0xFFE5E5E5),
                    borderRadius: BorderRadius.all(Radius.circular(15)),
                  ),
                ),
              ),
            ],
          ),
        );
      },
      itemCount: 5,
    ),
  ),
);
Output

output


🚧 Maintener

account avatar
Farhan Fadila
📫 How to reach me: farhan.fadila1717@gmail.com

❤️ Suport Maintener

badge paypal badge linktree

qr-paypal

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。