TextField Picker¶
The text field piker allows the user to select file.
Danger
This component on development, if you use the component please follow this documentation.
TextFieldPicker(
title: 'Image',
fileType: FileType.image,
fileExtension: const [FileExtension.png, FileExtension.svg],
onDone: (PlatformFile files) {},
),
Warning
Default Field picker maximum 5mb.
Constructors
titledefines the title on top field (optional)onDoneOn web thepathwill always benullas web always use fake paths, you should use thebytesinstead to retrieve the picked file data.fileExtensionif you using value [fileExtension] please chenge value [fileType] to [FileType.custom].fileTypedefault is [FileType.image] used for extension image.
Support Packages¶
Info
Authors:
