CropSettings constructor
CropSettings({
- CropAspectRatio? aspectRatio,
- CropStyle cropStyle = CropStyle.rectangle,
- int compressQuality = 90,
- ImageCompressFormat compressFormat = ImageCompressFormat.jpg,
- String toolbarTitle = 'Crop Image',
- Color toolbarColor = const Color(0xFF2196F3),
- Color toolbarWidgetColor = Colors.white,
- Color backgroundColor = Colors.black,
- Color primaryColor = const Color(0xFF2196F3),
- CropAspectRatioPreset initAspectRatio = CropAspectRatioPreset.original,
- bool lockAspectRatio = false,
- bool hideBottomControls = false,
Implementation
CropSettings({
this.aspectRatio,
this.cropStyle = CropStyle.rectangle,
this.compressQuality = 90,
this.compressFormat = ImageCompressFormat.jpg,
this.toolbarTitle = 'Crop Image',
this.toolbarColor = const Color(0xFF2196F3),
this.toolbarWidgetColor = Colors.white,
this.backgroundColor = Colors.black,
this.primaryColor = const Color(0xFF2196F3),
this.initAspectRatio = CropAspectRatioPreset.original,
this.lockAspectRatio = false,
this.hideBottomControls = false,
});