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

spring_button のカバー
パッケージ詳細v2.0.0

spring_button

子ウィジェットがジェスチャーにスプリングアニメーションで反応するためのシンプルなウィジェット。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
661
いいね数
42
Pub ポイント
140

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

flutter pub add spring_button

パッケージ概要

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

SpringButton は、子ウィジェットが押されたまたは操作されたときに、スプリングのようなアニメーションを追加する Flutter ウィジェットです。タップやドラッグなどの操作に対して滑らかで弾むフィードバックを提供することで、ユーザー体験を向上させます。アニメーションはカスタマイズ可能で、Android、iOS、Web、macOS、Windows、Linux などすべての主要プラットフォームで動作します。ダイナミックな応答を持つ魅力的なボタンやインタラクティブな UI 要素を作成するのに最適です。

用途

  • タッチフィードバック付きのアニメーションボタンの作成
  • モバイルアプリにおけるタッチ操作の向上
  • ウェブインターフェースに遊び心のあるエフェクトを追加する
  • フォームおよびコントロールにおけるユーザー参加の向上
  • クロスプラットフォームアプリ用のレスポンシブUIコンポーネントの設計

主な機能

  • 押されたときのスプリングアニメーション
  • カスタマイズ可能なアニメーションカーブ
  • クロスプラットフォーム互換性
  • 既存のウィジェットとの簡単な統合
  • タップおよびドラッグジェスチャーをサポート

適している対象

  • インタラクティブなUI要素を探している開発者
  • 遊び心のあるボタンアニメーションを希望するデザイナー
  • ユーザー体験に焦点を当てたアプリ
  • クロスプラットフォームのFlutterプロジェクト
  • インタラクティブ機能のプロトタイピング

注意事項

  • 過剰に使用するとパフォーマンスに影響を与える可能性があります
  • スプリングパラメータの正確な調整が必要です
  • ミニマリスティックなデザインには適していません
  • タッチ操作に基づくインタラクションに限定
  • アクセシビリティを重視したアプリにはアニメーションが最適とは限らない

元の README

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

spring_button

Cosmos Software

Pub License

A simple widget for having child widgets that respond to gestures with a spring animation.

Media | Description | How-to-Use

Media

Watch on Youtube:

v1.0.0



Description

This is a simple widget for having child widgets that respond to gestures with a spring animation.

It is more of an extension to the GestureDetector widget than an original new widget.

How-to-Use

Simply create a SpringButton as shown in the example:

SpringButton(
    SpringButtonType.OnlyScale, //springButtonType
    uiChild(),                  //uiChild
    {Key key,
    useCache            : true,
    alignment           : Alignment.center,
    scaleCoefficient    : 0.75,
    onTapDown,
    onTapUp,
    onTap,
    onTapCancel,
    onSecondaryTapDown,
    onSecondaryTapUp,
    onSecondaryTapCancel,
    onDoubleTap,
    onLongPress,
    onLongPressStart,
    onLongPressMoveUpdate,
    onLongPressUp,
    onLongPressEnd,
    onVerticalDragDown,
    onVerticalDragStart,
    onVerticalDragUpdate,
    onVerticalDragEnd,
    onVerticalDragCancel,
    onHorizontalDragDown,
    onHorizontalDragStart,
    onHorizontalDragUpdate,
    onHorizontalDragEnd,
    onHorizontalDragCancel,
    onForcePressStart,
    onForcePressPeak,
    onForcePressUpdate,
    onForcePressEnd,
    onPanDown,
    onPanStart,
    onPanUpdate,
    onPanEnd,
    onPanCancel,
    onScaleStart,
    onScaleUpdate,
    onScaleEnd})
    
Widget uiChild() {}

Further Explanations:

For a complete set of descriptions for all parameters and methods, see the documentation.

  • SpringButton, as you can see, is very similar to a GestureDetector widget so it should be familiar.

Notes

I started using and learning Flutter only some weeks ago so this package might have some parts that don't make sense, that should be completely different, that could be much better, etc. Please let me know! Nicely!

Any help, suggestion or criticism is appreciated!

Cheers.





カテゴリー

ソースリポジトリ

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