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

action_slider のカバー
パッケージ詳細v0.7.0

action_slider

アクションの確認と、その後の読み込み後にそれらの成功に対するフィードバックを提供するスライダー。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
2.4万
いいね数
426
Pub ポイント
150

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

flutter pub add action_slider

パッケージ概要

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

Action Slider は、ユーザーがスライドして操作を確認できるようにする Flutter ウィジェットであり、ローディング状態の後に成功時の視覚フィードバックを提供します。ジェスチャーによる確認と明確な成功インジケーターを組み合わせることで、アイテムの削除やフォームの送信など重要な操作の体験を向上させます。このスライダーは複数のプラットフォームをサポートしており、カスタマイズ可能なスタイルと動作で既存の UI にスムーズに統合できます。

用途

  • 破壊的行動の確認
  • ユーザーの意図検証付きでフォームを送信する
  • 設定またはプロフィール管理におけるUXの向上
  • アクション実行後のフィードバック提供
  • モバイルおよびウェブアプリにおけるジェスチャーによる確認の統合

主な機能

  • ジェスチャーによる操作の確認
  • 成功時の視覚フィードバック
  • 読み込み状態の統合
  • クロスプラットフォーム対応(Android、iOS、Web、macOS、Windows、Linux)
  • カスタマイズ可能な外観と動作

適している対象

  • インタラクティブなフォームを構築する開発者
  • センシティブな操作に対してユーザーの承認を求めるアプリ
  • ユーザーエクスペリエンスを重視したアプリケーション
  • マルチプラットフォーム Flutter プロジェクト
  • 直感的なジェスチャーを重視するデザインシステム

注意事項

  • ロード状態の処理には注意が必要です
  • スクリーンリーダー用のアクセシビリティ向上が必要になる可能性があります
  • シンプルなボタンクリックには向いていない
  • ユーザーの明示的な承認が必要な使用ケースに限定
  • 複雑なアニメーションによるパフォーマンスへの潜在的影響

元の README

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

pub.dev github likes downloads pub points license buy me a coffee

If you like this package, please leave a like there on pub.dev and star on GitHub.

A fully customizable slider to confirm actions and provide feedback on the success. It supports different states like loading, success and failure.

LTR and RTL are both supported.
For a switch with a similar look, you can check out animated_toggle_switch.

Examples

ActionSlider.standard() with SliderBehavior.stretch
action_slider_example_snake
action_slider_example_expanded

ActionSlider.dual()
action_slider_example_dual
action_slider_example_dual_customized

ActionSlider.standard() with TextDirection.rtl
action_slider_example_rtl

ActionSlider.standard() with SliderIconAnimation.roll
action_slider_example_rolling

ActionSlider.standard() with SliderBehavior.stretch and SliderIconAnimation.roll
action_slider_example_rolling_snake

You can build your own sliders with ActionSlider.custom()
action_slider_example_custom

Easy Usage

Easy to use and highly customizable.

ActionSlider.standard(
    child: const Text('Slide to confirm'),
    action: (controller) async {
        controller.loading(); //starts loading animation
        await Future.delayed(const Duration(seconds: 3));
        controller.success(); //starts success animation
    },
    ... //many more parameters
)

Two directions with ActionSlider.dual

ActionSlider.dual(
    child: const Text('Slide to confirm'),
    startAction: (controller) async {
        controller.success(expanded: true, side: SliderSide.start); //starts success animation with an expanded slider
    },
    endAction: (controller) async {
        controller.success(); //starts success animation
    },
    ... //many more parameters
)

Maximum customizability with ActionSlider.custom.

ActionSlider.custom(
    foregroundBuilder: (context, state, child) => ...,
    backgroundBuilder: (context, state, child) => ...,
    outerBackgroundBuilder: (context, state, child) => ...,
    action: (controller) => ...,
    ... //many more parameters
)

カテゴリー

ソースリポジトリ

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