NiceFileUpload constructor
const
NiceFileUpload({ - Key? key,
- required void onFilesSelected(
- List<String> paths
),
- String? label,
- String hint = 'Przeciągnij pliki lub kliknij aby wybrać',
- List<String>? acceptedExtensions,
- bool multiple = true,
- int? maxFiles,
- IconData icon = Icons.cloud_upload_outlined,
- List<NiceUploadedFile> files = const [],
- void onRemoveFile(
- int index
)?,
- double height = 120,
})
Implementation
const NiceFileUpload({
super.key,
required this.onFilesSelected,
this.label,
this.hint = 'Przeciągnij pliki lub kliknij aby wybrać',
this.acceptedExtensions,
this.multiple = true,
this.maxFiles,
this.icon = Icons.cloud_upload_outlined,
this.files = const [],
this.onRemoveFile,
this.height = 120,
});