v0.0.9
dynamic_image_crop
선을 그려서 또는 다양한 형태로 자르는 방식으로 이미지를 자르는 Flutter 패키지입니다.
30좋아요 7730일 다운로드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 ↗