MultiImageEditor constructor
const
MultiImageEditor({
- Key? key,
- required List images,
- ImageEditorFeatures features = const ImageEditorFeatures(crop: true, blur: true, adjust: true, emoji: true, filters: true, flip: true, rotate: true, text: true),
- List<
AspectRatioOption> cropAvailableRatios = 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 Size viewportSize,
- required bool darkTheme,
- required EditorBackground background,
The MultiImageEditor constructor requires the images
, viewportSize
, darkTheme
, and background
parameters
Implementation
const MultiImageEditor({
super.key,
required this.images,
this.features = const ImageEditorFeatures(
crop: true,
blur: true,
adjust: true,
emoji: true,
filters: true,
flip: true,
rotate: true,
text: true,
),
this.cropAvailableRatios = 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.viewportSize,
required this.darkTheme,
required this.background,
});