NImagePicker constructor
const
NImagePicker({
- required NImagePickerController controller,
- String onLoadingImage = '',
- BoxFit imageFit = BoxFit.cover,
- EdgeInsetsGeometry margin = EdgeInsets.zero,
- bool enable = true,
- BoxFit fit = BoxFit.cover,
- double filterOpacity = 0.2,
- Color? bankgroundColor,
- BoxShadow? shadow,
- Future<
void> onTap()?, - BorderRadius? borderRadius,
- Border? border,
- double? width,
- double? height,
- Widget? onClearWidget,
- Widget? onErrorWidget,
- Widget? onSelectionWidget,
- Widget? onLoadingWidget,
- Key? key,
Implementation
const NImagePicker({
required this.controller,
///Only load image from https or http
this.onLoadingImage = '',
this.imageFit = BoxFit.cover,
this.margin = EdgeInsets.zero,
this.enable = true,
this.fit = BoxFit.cover,
this.filterOpacity = 0.2,
this.bankgroundColor,
this.shadow,
this.onTap,
this.borderRadius,
this.border,
this.width,
this.height,
this.onClearWidget,
this.onErrorWidget,
this.onSelectionWidget,
this.onLoadingWidget,
super.key
});