ardera / flutter-pi

A light-weight Flutter Engine Embedder for Raspberry Pi that runs without X.
MIT License
1.48k stars 153 forks source link

flutter_secure_storage MissingPluginException #369

Open INDAPP opened 6 months ago

INDAPP commented 6 months ago

I'm trying to run an app with flutter_secure_storage plugin.

When I try to run the app I receive the following error:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method read on channel plugins.it_nomads.com/flutter_secure_storage)

The application starts, but I cannot proceed without a secure storage.

The application works fine on other platforms like macOS or ubuntu.

I already tried to install libsecret-1-0 from apt-get, but the problem seems to be not related.

In the readme file I read that I "have to build the platform side of the plugins"... but how?

ardera commented 4 months ago

Yeah you're right, flutter_secure_storage is not supported on flutter-pi and you'd need to write some C code to make it work.

Though this package might work: https://pub.dev/packages/amplify_secure_storage_dart