flutter-pi icon indicating copy to clipboard operation
flutter-pi copied to clipboard

MissingPluginException No implementation found for method openFile

Open prattom opened this issue 1 year ago • 1 comments

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>

prattom avatar Jun 16 '24 17:06 prattom

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.

ardera avatar Jun 17 '24 12:06 ardera