v0.0.9
dynamic_image_crop
Ein Flutter-Paket, das Bilder durch Zeichnen von Linien oder Ausschneiden in verschiedenen Formen zuschneidet.
30Likes 5130-Tage-Downloads160Pub-Punkte
AndroidiOSmacOSWindowsLinux
Ein Flutter-Paket, das das Bild durch Zeichnen von Linien oder Schneiden in verschiedenen Formen zuschneidet
{"sdk":"flutter"}{"sdk":"flutter"}—Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Pub https://codecov.io/gh/boring-km/dynamic_image_crop/branch/master/graph/badge.svg?token=c8fbc37f-5266-4bdb-8b09-ccb7ba5bf711 Flutter Demo License: MIT
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
}