CardSettingsFilePicker constructor
CardSettingsFilePicker({
- Key? key,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- FormFieldSetter<
Uint8List> ? onSaved, - FormFieldValidator<
Uint8List> ? validator, - Uint8List? initialValue,
- bool visible = true,
- String label = 'File',
- bool enabled = true,
- String? unattachDialogTitle,
- String unattachDialogCancel = 'Cancel',
- String unattachDialogConfirm = 'Unattach',
- ValueChanged<
Uint8List?> ? onChanged, - TextAlign? contentAlign,
- double maxThumbnailWidth = 180,
- double maxThumbnailHeight = 180,
- Icon? icon,
- TextAlign? labelAlign,
- double? labelWidth,
- Widget? requiredIndicator,
- TextStyle? style,
- bool? showMaterialonIOS,
- EdgeInsetsGeometry? fieldPadding,
- FileType? fileType,
- List<
String> ? allowedExtensions,
Implementation
CardSettingsFilePicker({
Key? key,
// bool autovalidate: false,
AutovalidateMode autovalidateMode: AutovalidateMode.onUserInteraction,
FormFieldSetter<Uint8List>? onSaved,
FormFieldValidator<Uint8List>? validator,
Uint8List? initialValue,
this.visible = true,
this.label = 'File',
this.enabled = true,
String? unattachDialogTitle,
this.unattachDialogCancel = 'Cancel',
this.unattachDialogConfirm = 'Unattach',
this.onChanged,
this.contentAlign,
this.maxThumbnailWidth = 180,
this.maxThumbnailHeight = 180,
this.icon,
this.labelAlign,
this.labelWidth,
this.requiredIndicator,
this.style,
this.showMaterialonIOS,
this.fieldPadding,
this.fileType,
this.allowedExtensions,
}) : unattachDialogTitle = unattachDialogTitle ?? 'Unattach ' + label + "?",
super(
key: key,
initialValue: initialValue,
onSaved: onSaved,
validator: validator,
// autovalidate: autovalidate,
autovalidateMode: autovalidateMode,
builder: (FormFieldState<Uint8List> field) =>
(field as _CardSettingsFilePickerState)._build(field.context));