sidlatau / flutter_document_picker

Allows user pick a document. Picked document is copied to app temporary directory. Optionally allows pick document with specific extension only.
Apache License 2.0
41 stars 29 forks source link

No named parameter with the name 'allowedMimeType' #14

Closed abdul-vahid closed 6 years ago

abdul-vahid commented 6 years ago

Hi, Here in the following snippet, it shows me that allowedMimeType is not a parameter, can you please let me know how we can resolve it?

FlutterDocumentPickerParams params = FlutterDocumentPickerParams( allowedMimeType: _checkByMimeType ? _mimeTypeController.text : null, allowedFileExtensions: _checkByCustomExtension ? _extensionController.text .split(' ') .where((x) => x.isNotEmpty) .toList() : null, allowedUtiTypes: _iosPublicDataUTI ? null : _utiController.text .split(' ') .where((x) => x.isNotEmpty) .toList(),

  );
sidlatau commented 6 years ago

What is an exact error message? Are you using the latest version of the plugin? Currently latest version is v1.1.3

abdul-vahid commented 6 years ago

Hi sidlatau,

The issue has been resolved when I run flutter doctorate command, but I am finding new issue that when I am running your example it keep showing me Resolving Dependency and app is not working...

https://pub.dartlang.org/packages/flutter_document_picker#-example-tab-

image

abdul-vahid commented 6 years ago

Now I am getting this error:

Launching lib\main.dart on XT1663 in debug mode... Initializing gradle... Resolving dependencies... timeout waiting for the application to start

FAILURE: Build failed with an exception.

BUILD FAILED in 6m 33s

Finished with error: Please review your Gradle project setup in the android/ folder.

abdul-vahid commented 6 years ago

All Issues have been resolved now I can see you and able to select file. Thanks