パッケージ、リポジトリ、アプリカテゴリを検索

draggable_expandable_fab のカバー
パッケージ詳細v1.0.0

draggable_expandable_fab

このFlutterパッケージは、アニメーション付きの展開可能でドラッグ可能なフローティングボタンを提供します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
96
いいね数
27
Pub ポイント
150

パッケージをインストール

flutter pub add draggable_expandable_fab

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

draggable_expandable_fab パッケージは、Flutter アプリに浮動操作ボタンを追加し、複数のアクションに展開可能で、画面内のどこへでもドラッグできる機能を提供します。展開と移動の両方に対してスムーズなアニメーションが実装されており、インタラクティブで視覚的に魅力的なユーザー体験を提供します。単一のボタンから複数の機能に素早くアクセスが必要なアプリに最適です。モバイル、Web、デスクトップを含むすべての主要プラットフォームをサポートしています。応答性と滑らかな動きを維持しており、現代的なジェスチャー駆動インターフェースに適しています。

用途

  • 複数の操作への迅速なアクセス
  • ジェスチャーによるナビゲーション
  • インタラクティブなUI要素
  • モバイルおよびデスクトップアプリの強化
  • カスタマイズ可能なアクションメニュー
  • ユーザー参加の向上

主な機能

  • ドラッグ可能なフローティングボタン
  • 展開可能な操作メニュー
  • スムーズなアニメーション遷移
  • クロスプラットフォーム対応
  • カスタマイズ可能なレイアウト
  • 応答性のあるタッチ処理

適している対象

  • インタラクティブなFABを求めるアプリ開発者
  • 動的なUIコンポーネントを希望するデザイナー
  • ジェスチャー豊富なインターフェースを必要とするプロジェクト
  • モバイルアプリにおけるマルチアクションツールバー
  • モダンでアニメーション付きのアプリインターフェース

注意事項

  • 低価格端末でのパフォーマンスに影響を与える可能性があります
  • 重なりを避けるために慎重な配置が必要です
  • 基本的なスタイリングを超えるカスタマイズが限られている
  • 単一のアクションに限定されたシンプルな利用ケースには向かない
  • すべてのターゲットプラットフォームでテストが必要です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Expandable Draggable Fab

This Flutter package provides a Expandable and Draggable Floating Button with animation.

💻 Installation

In the dependencies: section of your pubspec.yaml, add the following line:

dependencies:
  draggable_expandable_fab: <latest version>

To use the latest changes:

  draggable_expandable_fab:
    git:
      url: https://github.com/Tughra/draggable_expandable_fab.git
      ref: master

❔ Usage

Import this class

import 'package:draggable_expandable_fab/draggable_expandable_fab.dart';

Replace Scaffold's parameters with these to better usage.

      floatingActionButtonAnimator: NoScalingAnimation(),
      floatingActionButtonLocation: ExpandableFloatLocation(),

Simple Implementation

Scaffold(
      floatingActionButtonAnimator: NoScalingAnimation(),
      floatingActionButtonLocation: ExpandableFloatLocation(),
      floatingActionButton: ExpandableDraggableFab(childrenCount: 3,
      distance: 100,// Animatiion distance during open and close. 
      children: [
        FloatingActionButton(onPressed: (){}),
        FloatingActionButton(onPressed: (){}),
        FloatingActionButton(onPressed: (){}),
      ],),
      body: Container(),
    );

Full Implementation

   final Size _size = MediaQuery.of(context).size;
    return Scaffold(
      floatingActionButtonAnimator: NoScalingAnimation(),
      floatingActionButtonLocation: ExpandableFloatLocation(),
      floatingActionButton: ExpandableDraggableFab(childrenCount: 3,
        onTab: (){
        debugPrint("Tab");
        },
        childrenTransition: ChildrenTransition.fadeTransation,
        initialOpen: false,
        childrenBoxDecoration: const BoxDecoration(color: Colors.red),
        enableChildrenAnimation: true,
        curveAnimation: Curves.linear,
        reverseAnimation: Curves.linear,
        childrenType: ChildrenType.columnChildren,
        closeChildrenRotate: false,
        childrenAlignment: Alignment.topRight,
        initialDraggableOffset: Offset(_size.width-90,_size.height-100),
      distance: 100,// Animation distance during open and close.
      children: [
        FloatingActionButton(onPressed: (){}),
        FloatingActionButton(onPressed: (){}),
        FloatingActionButton(onPressed: (){}),
      ],),
      body: Container(),
    );

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。