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

flexiges のカバー
パッケージ詳細v1.0.2

flexiges

Flexiは、開発者がウィジェットを簡単に正確にドラッグ、ズーム、回転、スケーリングできるように設計された、動的で包括的なFlutterパッケージです。Flexiはこれを簡単かつ効率的にします。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
35
いいね数
4
Pub ポイント
135

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

flutter pub add flexiges

パッケージ概要

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

Flexiges は、Flutter パッケージであり、開発者がドラッグ、ズーム、回転、スケーリングなどの動的なタッチ操作を簡単に実装できるようにします。正確さとシンプルさを重視して設計されており、直感的なジェスチャー制御によりユーザー体験を向上させます。Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしており、クロスプラットフォームアプリケーションに適しています。最小限のセットアップで既存プロジェクトにシームレスに統合され、開発者がインタラクティブで応答性の高い UI を作成できるようになります。

用途

  • インタラクティブUIコンポーネント
  • ドラッグアンドドロップインターフェース
  • ズーム可能な画像ビューア
  • 回転可能な 2D 要素
  • ジェスチャーに基づくアニメーション
  • インタラクティブなコンテンツを備えた教育アプリ

主な機能

  • ウィジェットをドラッグ、ズーム、回転、スケーリングする
  • 高精度のジェスチャー処理
  • クロスプラットフォーム互換性
  • 最小限の構成が必要
  • スムーズなアニメーション遷移
  • 複数のタッチポイントをサポート

適している対象

  • インタラクティブなアプリを開発する開発者
  • ジェスチャーを実装するUI/UXデザイナー
  • 教育またはゲームアプリケーション
  • 動的なウィジェット操作を必要とするアプリ
  • 迅速なプロトタイピングに注力するチーム

注意事項

  • 複雑なネストされたウィジェットではパフォーマンスに影響を与える可能性があります
  • 変換状態の取り扱いに注意が必要です
  • 静的レイアウトには適していません
  • タッチ対応デバイスに最適
  • 高度な変換のカスタマイズが限定的

元の README

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

Flexi

Flexi is a Flutter package that provides a flexible widget for zooming, panning, and rotating child widgets.

Alt Text

Features

  • Zoom in and out of a widget.
  • Pan the widget by dragging it.
  • Rotate the widget using gestures.
  • Double-tap to reset the widget to its original state.
  • Configurable minimum and maximum scale limits.
  • Configurable maximum translation limits along the X and Y axes.
  • Enable/disable rotation, scaling, and translation individually.
  • Support for custom callbacks on scale start, update, and end events.

Installation

Add the following dependency to your pubspec.yaml file:

dependencies:
  flexi: ^1.0.0

Usage

Import the package in your Dart file:

import 'package:flexi/flexi.dart';

Wrap your widget with the Flexi widget:

FlexiGes(
  child: YourWidget(),
  minScale: 0.8, // Set the minimum scale limit (optional)
  maxScale: 2.5, // Set the maximum scale limit (optional)
  onScaleUpdate: (offset, scale, rotation) {
    // Handle scale update event
  },
  onScaleEnd: (details) {
    // Handle scale end event
  },
)

Parameters

  1. child: The child widget that you want to apply zoom, pan, and rotate features to. (required)
  2. minScale: The minimum scale factor for scaling the widget. Defaults to 0.8. (optional)
  3. maxScale: The maximum scale factor for scaling the widget. Defaults to 2.5. (optional)
  4. onScaleUpdate: A callback function that is triggered during the scale update event. It provides the current offset, scale factor, and rotation angle as parameters. (optional)
  5. onScaleEnd: A callback function that is triggered when the scale event ends. It provides the scale end details as a parameter. (optional)
  6. canRotate: Flag to enable/disable rotation. Defaults to true. (optional)
  7. canScale: Flag to enable/disable scaling. Defaults to true. (optional)
  8. canTranslate: Flag to enable/disable translation. Defaults to true. (optional)
  9. returnToOrigin: Flag to enable/disable returning to the original state on double-tap. Defaults to true. (optional)
  10. enabled: Flag to enable/disable the Flexi widget. Defaults to true. (optional)
  11. maxTranslationX: The maximum translation value along the X-axis. Defaults to 100. (optional)
  12. maxTranslationY: The maximum translation value along the Y-axis. Defaults to 100. (optional)

Example

Check out the example directory for a working example of using the Flexi widget.

Running Tests

To run the tests for the Flexi package, use the following command: flutter test flexi_test.dart

Contributing

Contributions are welcome! Please submit any issues or pull requests via the GitHub repository.

License

This project is licensed under the MIT License.

Feel free to customize the content further based on your package's specific details and testing instructions.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

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