BaseFieldImagePicker constructor

const BaseFieldImagePicker({
  1. Key? key,
  2. String? label,
  3. double? width,
  4. double height = 96,
  5. EdgeInsetsGeometry? padding,
  6. Widget? trailing,
  7. Color? background,
  8. Widget? placeholder = const PlaceholderText(text: 'Choose an image', iconSize: 30),
  9. BorderRadiusGeometry? borderRadius,
  10. TextEditingController? controller,
  11. bool isError = false,
  12. required void onChanged(
    1. File pickedImage
    ),
})

Implementation

const BaseFieldImagePicker({
  super.key,
  this.label,
  this.width,
  this.height = 96,
  this.padding,
  this.trailing,
  this.background,
  this.placeholder = const PlaceholderText(
    text: 'Choose an image',
    iconSize: 30,
  ),
  this.borderRadius,
  this.controller,
  this.isError = false,
  required this.onChanged,
});