Crop constructor
const
Crop({
- Key? key,
- required Widget child,
- required CropController controller,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8),
- Color dimColor = const Color.fromRGBO(0, 0, 0, 0.8),
- Color backgroundColor = Colors.black,
- Widget? background,
- Widget? foreground,
- Widget? helper,
- Widget? overlay,
- bool interactive = true,
- BoxShape shape = BoxShape.rectangle,
- ValueChanged<
MatrixDecomposition> ? onChanged, - Duration animationDuration = const Duration(milliseconds: 200),
Implementation
const Crop({
Key? key,
required this.child,
required this.controller,
this.padding = const EdgeInsets.all(8),
this.dimColor = const Color.fromRGBO(0, 0, 0, 0.8),
this.backgroundColor = Colors.black,
this.background,
this.foreground,
this.helper,
this.overlay,
this.interactive = true,
this.shape = BoxShape.rectangle,
this.onChanged,
this.animationDuration = const Duration(milliseconds: 200),
}) : super(key: key);