CyberFilePicker constructor
const
CyberFilePicker({
- Key? key,
- String label = "Chọn file",
- IconData? icon,
- required OnFileSelected onFileSelected,
- OnFileError? onError,
- Color? backgroundColor,
- Color? textColor,
- double borderRadius = 8.0,
- EdgeInsets? padding,
- bool enabled = true,
- bool enableCompression = true,
- int compressionQuality = 85,
- int? maxWidth = 1920,
- int? maxHeight = 1920,
- List<
String> ? allowedExtensions, - bool allowMultiple = false,
- 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,
});