Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingPluginException No implementation found for method openFile #427

Open
prattom opened this issue Jun 16, 2024 · 1 comment
Open

MissingPluginException No implementation found for method openFile #427

prattom opened this issue Jun 16, 2024 · 1 comment

Comments

@prattom
Copy link

prattom commented Jun 16, 2024

I am getting following error while running application on raspberry pi. I am using flutterpi_tool 0.3.0

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method openFile on channel plugins.flutter.dev/file_selector_linux) #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332) <asynchronous suspension> #1 MethodChannel.invokeListMethod (package:flutter/src/services/platform_channel.dart:520) <asynchronous suspension> #2 FileSelectorLinux.openFile (package:file_selector_linux/file_selector_linux.dart:45) <asynchronous suspension> #3 ImagePickerLinux.getImageFromSource (package:image_picker_linux/image_picker_linux.dart:103) <asynchronous suspension> #4 selectMedia (package:tokenscreen4/flutter_flow/upload_data.dart:205) <asynchronous suspension> #5 _HomePageWidgetState.build.<anonymous closure> (package:tokenscreen4/pages/home_page/home_page_widget.dart:134) <asynchronous suspension>

@ardera
Copy link
Owner

ardera commented Jun 17, 2024

Unfortunately, the file_selector plugin is not supported with flutter-pi, and right now it's not really possible to support it :/

file_selector (on linux) opens a native GTK+ file picker dialogue in a popup window. Flutter-pi runs without any window manager underneath and also without GTK+, so unfortunately can't make use of that with flutter-pi.

You can implement your own file picker though, or there's probably someone that did that already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants