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