v0.0.9
dynamic_image_crop
一個 Flutter 套件,可透過繪製線條或裁剪成各種形狀來裁剪影像。
30喜歡 77近 30 天下載150Pub 分數
AndroidiOSmacOSWindowsLinux
一個用於透過繪製線條或裁剪為各種形狀來裁剪影像的 Flutter 套件
以下為英文專案原文快照,最新內容請造訪 GitHub。
A Flutter package to crop images into various shapes.
You can test the package by this link: demo_link
dynamic_image_crop supports the following features:
import 'package:dynamic_image_crop/dynamic_image_crop.dart';
final controller = CropController();
DynamicImageCrop(
controller: controller,
image: image!, // Uint8List
onResult: (image, width, height) {
// cropped Image (Uint8List), width and height
},
cropLineColor: Colors.red, // (Optional)
cropLineWidth: 1.0, // (Optional)
)
DynamicImageCrop.fromFile(
imageFile: file, // File
controller: controller,
onResult: (image, width, height) {
// cropped Image (Uint8List), width and height
},
)
CropController has the following methods:
void cropImage() {}
void changeType(CropType type) {}
void changeImage(Uint8List image) {}
void clearCropArea() {}
CropType has the following types:
enum CropType {
rectangle, circle, triangle, drawing, none
}
依賴清單 3 項
{"sdk":"flutter"}{"sdk":"flutter"}—先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗