v1.5.3croppy
一個完全可自定義的 Flutter 圖像裁剪工具。以行動裝置為首選,但也支援 Web 和桌面平台。
一個完全可自訂的 Flutter 圖像裁剪工具,適用於 Flutter
{"sdk":"flutter"}^0.4.3^2.2.0^1.0.0^1.0.0^0.17.60.1.0^1.3.0^1.0.8^2.0.5^2.1.4^1.1.1{"sdk":"flutter"}^4.0.0^20.1.1以下為英文專案原文快照,最新內容請造訪 GitHub。
Cover image
A fully customizable image cropper for Flutter, with built-in Material and Cupertino croppers.
Check out the example at https://kekland.github.io/croppy.
https://github.com/kekland/croppy/raw/master/doc/assets/video.gif https://github.com/kekland/croppy/raw/master/doc/assets/image1.png https://github.com/kekland/croppy/raw/master/doc/assets/image2.png https://github.com/kekland/croppy/raw/master/doc/assets/image3.png
Supported platforms:
NOTE: see https://github.com/kekland/croppy/issues/38. Currently I'm very busy with other projects so support might be limited.
In progress:
Install croppy from pub:
dependencies:
croppy: <latest_version>
Enjoy using it :)
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.
croppy currently supports the following languages:
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,
],
...
)
Feel free to report bugs/issues on GitHub.
If you have questions, you can contact me directly at kk.erzhan@gmail.com.
Credits:
FitAabbInQuadSolver class