Skip to content

aslamanver/flutter-image-picker-cropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image_editor

Flutter image picker and cropper.

Getting Started

Example project for image picker using camera and gallery also cropping.

// In async method: 

var image = await ImagePicker.pickImage(
  source: ImageSource.gallery,
  imageQuality: 50
);

File croppedFile = await ImageCropper.cropImage(
  sourcePath: image.path,
  ratioX: 1.0,
  ratioY: 1.0,
  maxWidth: 600,
  maxHeight: 600,
);