File Picker Field for flutter_form_builder package
Since this package makes use of file_picker package, for platform specific setup, follow the instructions here
import 'package:flutter_form_builder/flutter_form_builder.dart';
import 'package:form_builder_file_picker/form_builder_file_picker.dart';
FormBuilderFilePicker(
name: "images",
decoration: InputDecoration(labelText: "Attachments"),
maxFiles: null,
previewImages: true,
onChanged: (val) => print(val),
selector: Row(
children: <Widget>[
Icon(Icons.file_upload),
Text('Upload'),
],
),
onFileLoading: (val) {
print(val);
},
),