UFilePicker constructor
const
UFilePicker({
- Key? key,
- UFilePickerController? controller,
- ValueChanged<
List< ? onFilesChanged,UFileData> > - List<
UFileData> initialFiles = const <UFileData>[], - bool allowMultipleSelection = true,
- String? selectFileTitle,
- String? subtitle,
- List<
String> imageTypes = const <String>["jpg", "jpeg", "png", "gif", "bmp", "webp"], - List<
String> videoTypes = const <String>["mp4", "mov", "avi", "mkv", "webm"], - List<
String> documentTypes = const <String>["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt"], - List<
String> ? allowedExtensions, - FileType fileType = FileType.custom,
- List<
UFilePickerCategory> categories = const <UFilePickerCategory>[], - String? categoryTitle,
- bool selectCover = false,
- bool enabled = true,
- double tileExtent = 140,
- IconData icon = Icons.cloud_upload_outlined,
Implementation
const UFilePicker({
super.key,
this.controller,
this.onFilesChanged,
this.initialFiles = const <UFileData>[],
this.allowMultipleSelection = true,
this.selectFileTitle,
this.subtitle,
this.imageTypes = const <String>["jpg", "jpeg", "png", "gif", "bmp", "webp"],
this.videoTypes = const <String>["mp4", "mov", "avi", "mkv", "webm"],
this.documentTypes = const <String>["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt"],
this.allowedExtensions,
this.fileType = FileType.custom,
this.categories = const <UFilePickerCategory>[],
this.categoryTitle,
this.selectCover = false,
this.enabled = true,
this.tileExtent = 140,
this.icon = Icons.cloud_upload_outlined,
});