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
title
defines the title on top field (optional)onDone
On web thepath
will always benull
as web always use fake paths, you should use thebytes
instead to retrieve the picked file data.fileExtension
if you using value [fileExtension] please chenge value [fileType] to [FileType.custom].fileType
default is [FileType.image] used for extension image.
Support Packages¶
Info
Authors: