BaseFieldImagePicker constructor
const
BaseFieldImagePicker({
- Key? key,
- String? label,
- double? width,
- double height = 96,
- EdgeInsetsGeometry? padding,
- Widget? trailing,
- Color? background,
- Widget? placeholder = const PlaceholderText(text: 'Choose an image', iconSize: 30),
- BorderRadiusGeometry? borderRadius,
- TextEditingController? controller,
- bool isError = false,
- required void onChanged(
- 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,
});