NImagePicker constructor

const NImagePicker({
  1. NImagePickerController? controller,
  2. String? onLoadingImage,
  3. BoxFit imageFit = BoxFit.cover,
  4. EdgeInsetsGeometry margin = EdgeInsets.zero,
  5. bool readOnly = false,
  6. BoxFit fit = BoxFit.cover,
  7. double filterOpacity = 0.2,
  8. Color? bankgroundColor,
  9. BoxShadow? shadow,
  10. Future<void> onTap()?,
  11. BorderRadius? borderRadius,
  12. Border? border,
  13. double width = 100,
  14. double height = 100,
  15. Widget? emptyWidget,
  16. Widget? filledWidget,
  17. Widget? onErrorWidget,
  18. Widget? onLoadingWidget,
  19. bool viewerBlur = true,
  20. double viewerBlurSigma = 5.0,
  21. bool previewBlur = false,
  22. double previewBlurSigma = 5.0,
  23. 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
});