CyberFilePickerField constructor

const CyberFilePickerField({
  1. Key? key,
  2. String label = "Chọn file",
  3. String? hint,
  4. required OnFileSelected onFileSelected,
  5. OnFileError? onError,
  6. bool enableCompression = true,
  7. int compressionQuality = 85,
  8. int? maxWidth = 1920,
  9. int? maxHeight = 1920,
  10. List<String>? allowedExtensions,
  11. bool isShowLabel = true,
  12. Color? backgroundColor,
})

Implementation

const CyberFilePickerField({
  super.key,
  this.label = "Chọn file",
  this.hint,
  required this.onFileSelected,
  this.onError,
  this.enableCompression = true,
  this.compressionQuality = 85,
  this.maxWidth = 1920,
  this.maxHeight = 1920,
  this.allowedExtensions,
  this.isShowLabel = true,
  this.backgroundColor,
});