ImageCropper constructor
const
ImageCropper({
- Key? key,
- required Uint8List image,
- List<
AspectRatioOption> availableRatios = const [AspectRatioOption(title: 'Freeform'), AspectRatioOption(title: '1:1', ratio: 1), AspectRatioOption(title: '4:3', ratio: 4 / 3), AspectRatioOption(title: '5:4', ratio: 5 / 4), AspectRatioOption(title: '7:5', ratio: 7 / 5), AspectRatioOption(title: '16:9', ratio: 16 / 9)], - required bool darkTheme,
The ImageCropper widget provides an interactive UI for users to crop and rotate
Implementation
const ImageCropper({
super.key,
required this.image,
this.availableRatios = const [
AspectRatioOption(title: 'Freeform'),
AspectRatioOption(title: '1:1', ratio: 1),
AspectRatioOption(title: '4:3', ratio: 4 / 3),
AspectRatioOption(title: '5:4', ratio: 5 / 4),
AspectRatioOption(title: '7:5', ratio: 7 / 5),
AspectRatioOption(title: '16:9', ratio: 16 / 9),
],
required this.darkTheme,
});