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

cropperx のカバー
パッケージ詳細v1.1.1

cropperx

Flutterで作成された画像クロッパーのパッケージです。画像の切り取りと回転に使用できます。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
6600
いいね数
89
Pub ポイント
160

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

flutter pub add cropperx

パッケージ概要

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

CropperX は、クリーンで直感的なインターフェースを備えた画像の切り取りと回転を目的としたFlutterパッケージです。クロスプラットフォーム対応で、Android、iOS、Web、macOS、Windows、Linuxをサポートしています。切り取り領域や画像回転をカスタマイズ可能なコントロールを提供しており、正確な画像編集が必要なアプリケーションに最適です。シンプルなAPIを通じてFlutterアプリにシームレスに統合でき、開発者が画像切り取り機能を迅速に実装できます。CropperXは軽量かつ効率的であり、パフォーマンスと使いやすさに重点を置いています。

用途

  • 画像プロファイルの編集
  • 文書スキャンワークフロー
  • 写真編集ツール
  • ソーシャルメディアコンテンツ作成
  • ユーザー生成コンテンツの処理

主な機能

  • インタラクティブな画像のクロッピング
  • リアルタイム回転サポート
  • クロスプラットフォーム互換性
  • カスタマイズ可能な UI コントロール
  • Flutter とのシンプルな統合

適している対象

  • モバイルアプリ開発者
  • Webアプリケーション作成者
  • 画像処理機能
  • ユーザー向けの写真エディター
  • 文書または本人確認が必要なアプリ

注意事項

  • 切り取りの前に画像を読み込む必要があります
  • 基本的な編集操作に限定
  • 組み込みの画像保存機能なし
  • カスタムテーマ用に追加のスタイルが必要になる場合があります
  • 外部画像ソースの処理に依存

元の README

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

CropperX

A cropper package made fully in Flutter.

Circle Rectangle Grid
Screenshot circle Screenshot rectangle Screenshot grid
Types of overlays

The overlay can be defined by adding an overlay type through the overlayType parameter. The following types are currently supported:

  • OverlayType.none: No overlay at all.
  • OverlayType.circle: An overlay with a circular gap.
  • OverlayType.rectangle: An overlay with a rectangular gap, takes the given aspect ratio.
  • OverlayType.grid: An overlay of grid lines: 2 horizontal and 2 vertical, evenly spaced.
  • OverlayType.gridHorizontal: An overlay of 2 horizontal grid lines, evenly spaced.
  • OverlayType.gridVertical: An overlay of 2 vertical grid lines, evenly spaced.
Rotating the image

The image rotation can be defined through the rotationTurns parameter. The default value is 0, corresponding to 0 degrees of rotation. Making the value larger by 1 will rotate the image 90 degrees clockwise, making it smaller will rotate the image 90 degrees counterclockwise. 0 to 4 is not a limit, so going above or below these values will keep rotating the image.

Example
// Import package
import 'package:cropperx/cropper.dart';

// Define a key
final _cropperKey = GlobalKey(debugLabel: 'cropperKey');

// Add the Cropper widget to your tree, using the above key and adding the image to crop
Cropper(
    cropperKey: _cropperKey, // Use your key here
    image: Image.network(
        'https://i.pinimg.com/originals/6b/4d/18/6b4d18c0b756ab20c3591490dfc10090.jpg',
    ),
)

// Get the cropped image as bytes
final imageBytes = await Cropper.crop(
    cropperKey: _cropperKey, // Reference it through the key
)

カテゴリー

ソースリポジトリ

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

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