CyberFilePicker constructor

const CyberFilePicker({
  1. Key? key,
  2. String label = "Chọn file",
  3. IconData? icon,
  4. required OnFileSelected onFileSelected,
  5. OnFileError? onError,
  6. Color? backgroundColor,
  7. Color? textColor,
  8. double borderRadius = 8.0,
  9. EdgeInsets? padding,
  10. bool enabled = true,
  11. bool enableCompression = true,
  12. int compressionQuality = 85,
  13. int? maxWidth = 1920,
  14. int? maxHeight = 1920,
  15. List<String>? allowedExtensions,
  16. bool allowMultiple = false,
  17. ButtonStyle? buttonStyle,
})

Implementation

const CyberFilePicker({
  super.key,
  this.label = "Chọn file",
  this.icon,
  required this.onFileSelected,
  this.onError,
  this.backgroundColor,
  this.textColor,
  this.borderRadius = 8.0,
  this.padding,
  this.enabled = true,
  this.enableCompression = true,
  this.compressionQuality = 85,
  this.maxWidth = 1920,
  this.maxHeight = 1920,
  this.allowedExtensions,
  this.allowMultiple = false,
  this.buttonStyle,
});