Flutter filepicker android singleInstance mode it is returns file path as null

Issue I am using the flutter file picker 6.0.0.When i try to select file from the picker file.I used singleInstance in manifest. FilePickerResult? result = await FilePicker.platform.pickFiles(allowedExtensions: [‘jpg’,’jpeg’,’png’,’pdf’],type: FileType.custom); if (result != null) { File file = File(result.files.single.path!); controller.isPasswordProtected.value =

Continue reading

File_picker in stateless bloc widget

Issue How do you go about using file_picker package in flutter and bloc management? https://pub.dev/packages/file_picker I have following code: class NewAuction extends StatelessWidget { late final FilePickerResult? filePickerResults; final _formKey = GlobalKey<FormState>(); final _priceController = TextEditingController(); final _descriptionController = TextEditingController();

Continue reading