Skip to content

How do flutter plugins work on Linux? #174257

@jierkai0

Description

@jierkai0

Steps to reproduce

  1. Build flutter
  2. Run in embedded device
  3. Run with LD_LIBRARY_PATH=/usr/share/flutter/3.32.5/release/lib/ flutter-client -b /usr/share/flutter/flutter-samples-simplistic-calculator/3.32.5/release

Actual results

I know that Flutter has two kinds of plugins, one is downloaded from pub.dev and the other is cloned from git. I'm now building flutter with meta-flutter for embedded platform and facing a problem of missing plugins when running flutter cases.

I can't figure out how do these plugins work in flutter? As the pub.dev says, I only need run 'flutter pub get' and the plugin can work. But actually meta-flutter's behavior is that downloaded plugins are stored in a folder named pub_cache and not installed into image which confuses me how these plugins work. Is it compiled into the library (it seems to be only for plugins downloaded from git) and installing in /usr/lib or is it just necessary to put the content of pub_cache into image with specific path?

This is critical for me because all our flutter cases can not work with plugins. So it should be a conpile/install issue.

Logs

Logs
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation found for method setWindowTitle on channel flutter/windowsize)

Flutter Doctor output

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions