ImageCropper constructor
const
ImageCropper({
- Key? key,
- required Uint8List image,
- List<
AspectRatio> availableRatios = const [o.AspectRatio(title: 'Freeform'), o.AspectRatio(title: '1:1', ratio: 1), o.AspectRatio(title: '4:3', ratio: 4 / 3), o.AspectRatio(title: '5:4', ratio: 5 / 4), o.AspectRatio(title: '7:5', ratio: 7 / 5), o.AspectRatio(title: '16:9', ratio: 16 / 9)],
Implementation
const ImageCropper({
super.key,
required this.image,
this.availableRatios = const [
o.AspectRatio(title: 'Freeform'),
o.AspectRatio(title: '1:1', ratio: 1),
o.AspectRatio(title: '4:3', ratio: 4 / 3),
o.AspectRatio(title: '5:4', ratio: 5 / 4),
o.AspectRatio(title: '7:5', ratio: 7 / 5),
o.AspectRatio(title: '16:9', ratio: 16 / 9),
],
});