CyberFilePickerField constructor
const
CyberFilePickerField({
- Key? key,
- String label = "Chọn file",
- String? hint,
- required OnFileSelected onFileSelected,
- OnFileError? onError,
- bool enableCompression = true,
- int compressionQuality = 85,
- int? maxWidth = 1920,
- int? maxHeight = 1920,
- List<
String> ? allowedExtensions, - bool isShowLabel = true,
- 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,
});