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

flutter_speed_dial のカバー
パッケージ詳細v7.0.0

flutter_speed_dial

ラベル、アニメーションアイコン、多方向の子要素などを備えた美しい動的なマテリアルデザインスピードダイヤルを実装するためのFlutterプラグイン。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
11.5万
いいね数
1340
Pub ポイント
140

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

flutter pub add flutter_speed_dial

パッケージ概要

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

アニメーションアイコン、ラベル、複数方向の子要素配置、スムーズな遷移をサポートする、ダイナミックで視覚的に魅力的なマテリアルデザインスピードダイヤルを実装するFlutterプラグインです。限られたスペースを持つアプリでのナビゲーションを向上させるのに最適であり、1つのフローティングボタンから複数のアクションにアクセスする直感的な方法を提供します。このプラグインはAndroid、iOS、Web、macOS、Windows、Linuxを含むすべての主要プラットフォームで互換性があります。

用途

  • モバイルアプリのナビゲーションの向上
  • 複数の操作への迅速なアクセスを提供
  • コンパクトレイアウトにおけるUI効率の向上
  • ダッシュボードにインタラクティブ要素を追加する
  • モダンでジェスチャーに優しいインターフェースの作成

主な機能

  • アニメーションアイコンのトランジション
  • 子アクションのラベルサポート
  • 多方向子要素配置
  • カスタマイズ可能なスピードダイヤル動作
  • クロスプラットフォーム互換性
  • スムーズな開閉アニメーション

適している対象

  • モバイルアプリ開発者
  • Material Design コンポーネントを探している UI/UX デザイナー
  • コンパクトなアクションメニューを必要とするアプリ
  • 複数のプラットフォームをターゲットにする開発者
  • Material Design ライブラリを使用するプロジェクト

注意事項

  • 多くの子要素を持つとパフォーマンスに影響する可能性があります
  • 慎重なレイアウト計画が必要です
  • 組み込みオプションを超えるカスタマイズは限られている
  • 複雑なネストされた相互作用には適していない
  • シンプルで集中したアクションセットに最適

元の README

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

Flutter Speed Dial

Flutter package to render a Material Design Speed Dial.

Support the development

To sustain the development of this library we need someone who can help this library either through code or by donating it. Donation will help us to live up in the world of unmaintained open source packages and to dedicate more time in improving this to live up to the mark. We will also add the name of the contributors or the donaters in the README section.

To donate directly you can use below link, don't forget to leave a message there:

Buy Me A Coffee

Or become a Github sponser by clicking on the Sponser button in this repository.

GitHub release License Classic API Docs Usage

Usage

The SpeedDial widget is built to be placed in the Scaffold.floatingActionButton argument, replacing the FloatingActionButton widget. You can set its position using Scaffold.floatingActionButtonLocation argument. It can also be used with Scaffold.bottomNavigationBar and Snackbar.

Null safety is available from version 3.0.5 ( It is also backward compatible, meaning you can use it with non null safe code too )

Labels

SpeedDial can take any Widget as label SpeedDial will use Extended FloatingActionButton property if label is specified. It also have activeLabel property by which you can specify the label which is shown when SpeedDial is open. It also comes with its labelTransitionBuilder which defaults to fade transition.

Also Every child's button have label property which accepts String which can be styled by using labelStyle. If you want to specify a widget then you can use labelWidget.
If the label parameter is not provided, then the label will be not rendered.

Types of child for SpeedDial (Ordered by their priority)
Animated Icon using animatedIcon property SpeedDial's AnimatedIcon has two specific parameters:
  • animatedIcon takes an AnimatedIconData widget
  • animatedIconTheme takes IconThemeData
Widget using child & activeChild property SpeedDial's Widget has two specific parameters:
  • child takes a widget and is the default placeholder if dial is not open.
  • activeChild takes a widget and is the child's Widget which is used when dial is open, not required.
IconData using icon & activeIcon property SpeedDial's IconData has three specific parameters:
  • icon takes a IconData and is the default placeholder if dial is not open.
  • activeIcon takes a IconData and is the child's IconData which is used when dial is open, not required.
  • iconTheme takes its IconThemeData which includes color and size.

The package will handle the animation by itself.

Handle spacing

There are various properties for SpeedDial by which you can adjust the spacing:

  1. spacing - This parameter handles the space b/w speed dial and its children.

  2. spaceBetweenChildren - As the name suggests, this is used to adjust the space b/w every child element

  3. childPadding - This will adjust the padding of children speed dial button, this will help you to control the size of the children button more effectively.

  4. childMargin - This will help you to adjust the margin b/w children speed dial button and its label.

Close on WillPop

Closes automatically on back button press, if dial is open. If you don't want this behaviour then simply change the value of closeDialOnPop to false.

How to use openCloseDial property:
  1. Create a value notifier named isDialOpen:
ValueNotifier<bool> isDialOpen = ValueNotifier(false);
  1. Then set openCloseDial to isDialOpen in your SpeedDial:
SpeedDial(
  ...
  openCloseDial: isDialOpen,
  ...
)
  1. Now you can change the state of dial open:
isDialOpen.value = false;
Example Usage

See Example Code for more info.

Issues & Feedback

Please file an issue to send feedback or report a bug,
If you want to ask a question or suggest an idea then you can open an discussion.
Thank you!

Contributing

Every pull request is welcome.

カテゴリー

ソースリポジトリ

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