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

croppy のカバー
パッケージ詳細v1.5.3

croppy

Flutter用の完全にカスタマイズ可能な画像クロッパー。モバイルを最優先に設計されていますが、Webおよびデスクトッププラットフォームもサポートしています。

Web
30日間ダウンロード
9730
いいね数
144
Pub ポイント
150

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

flutter pub add croppy

パッケージ概要

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

Croppy は、モバイルを最優先に設計された、Flutter 向けの完全にカスタマイズ可能な画像クロッピングツールであり、Web およびデスクトッププラットフォームもサポートしています。直感的なジェスチャーと柔軟な設定オプションにより、画像のクロッピングをスムーズに行うことができます。開発者がクロッピングインターフェースに対して細かな制御が必要な場合に最適で、アスペクト比、クロップ境界、UI要素をカスタマイズ可能です。軽量かつ応答性の高いデザインにより、あらゆるデバイスで滑らかなパフォーマンスを実現します。

用途

  • モバイルアプリでの画像編集
  • ウェブベースの写真トリミングツール
  • デスクトップ画像処理ワークフロー
  • カスタマイズ可能なユーザー向けのクロップインターフェース
  • メディアアップロードフローへの画像クロッピングの統合

主な機能

  • 完全にカスタマイズ可能なクロップ領域
  • 複数のプラットフォーム(Web、モバイル、デスクトップ)に対応
  • ジェスチャーによるクロッピングコントロール
  • 設定可能なアスペクト比
  • 応答性と適応性のあるUI
  • 拡張可能なスタイルオプション

適している対象

  • メディア豊富なアプリケーションを開発する開発者
  • 高度な画像操作を必要とするアプリ
  • クロスプラットフォーム画像トリミングソリューション
  • Teams prioritizing user experience in image editing
  • 軽量でパフォーマンスの高い切り取りコンポーネントが必要なプロジェクト

注意事項

  • モバイル以外のプラットフォームでは追加のセットアップが必要です
  • 切り抜き形状の組み込みプリセットが限定的
  • ブランドに合わせたUI用にカスタムスタイルが必要になる場合があります
  • スケールでの高解像度画像処理に最適化されていません
  • プラットフォーム固有のレンダリング動作に依存

元の README

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

Cover image

croppy

Pub Version

A fully customizable image cropper for Flutter, with built-in Material and Cupertino croppers.

Check out the example at https://kekland.github.io/croppy.

Supported platforms:

  • Android
  • iOS
  • Windows
  • Linux (untested, but should work)
  • macOS
  • Web (uses Dart's Cassowary instead of FFI because there's no FFI support in web)

NOTE: see https://github.com/kekland/croppy/issues/38. Currently I'm very busy with other projects so support might be limited.

Features

  • Material image cropper (similar to Google Photos)
  • iOS Photos app-like image cropper
  • Support for any linear transformations on the image: scaling, rotating, skewing, flipping, etc
  • Completely customizable (will create documentation with later releases)
  • Fixed aspect ratios
  • Custom cropping shapes
  • Kickass animations
  • Localization

In progress:

  • Image editing module (?) (brightness, contrast, etc)

Getting started

Install croppy from pub:

dependencies:
  croppy: <latest_version>

Enjoy using it :)

Usage

Currently croppy supports a Material (Google Photos-like) and a Cupertino (iOS Photos-like) image croppers:

final result = await showAdaptiveImageCropper(
    context,
    imageProvider: const NetworkImage('MY_IMAGE_URL'), // Or any other image provider
);

final result = await showMaterialImageCropper(
  context,
  imageProvider: const NetworkImage('MY_IMAGE_URL'), // Or any other image provider
);

final result = await showCupertinoImageCropper(
  context,
  imageProvider: const NetworkImage('MY_IMAGE_URL'), // Or any other image provider
);

Voilà! You can now start cropping images.

For a complete runnable example, see ./example. For the full in-depth documentation, including customization, see the documentation.

Localization

croppy currently supports the following languages:

  • English
  • Kazakh
  • Russian
  • Arabic (thanks @Milad-Akarie)
  • Vietnamese (thanks @ptanhVNU)
  • Portuguese (thanks @JCKodel)
  • Spanish (thanks @Thesergiolg99)
  • Chinese (thanks @yohom and @zhushenwudi)
  • Hebrew (thanks @kfiross)
  • German (thanks @jkoenig134)
  • Persian (thanks @mdpe-ir)
  • Turkish (thanks @BayramYARIM)
  • Polish (thanks @mekkolodziejski)
  • Romanian (thanks @AdrianSima)
  • Kyrgyz (thanks @warioddly)

If there's a language that you would like to add, please see the localization guide.

It's recommended to insert the CroppyLocalizations.delegate in your MaterialApp or CupertinoApp:

MaterialApp(
  localizationsDelegates: [
    CroppyLocalizations.delegate, // <- This here
    GlobalMaterialLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
    GlobalCupertinoLocalizations.delegate,
  ],
  ...
)

Additional information

Feel free to report bugs/issues on GitHub.

If you have questions, you can contact me directly at kk.erzhan@gmail.com.

Credits:

  • https://github.com/daniyarzt for the FitAabbInQuadSolver class

カテゴリー

依存関係

依存関係一覧 11 件

ソースリポジトリ

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

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