@Gencay This is not a simple answer.
First it depends on what image type you have (runtime=debug, runtime=release, runtime=profile).
My experience is that running a Flutter app via debug on the STM32MP157F-DK2 is very slow. So I would avoid that for now.
If you have a runtime=release image, then you have to create an AOT image.
The steps used by meta-flutter to generate an AOT (release - libapp.so) is located here:
https://github.com/meta-flutter/meta-flutter/blob/kirkstone/classes/flutter-app.bbclass#L170
If you install the flutter-engine-<runtime flavor>-sdk-dev package to image, you can scp the engine_sdk.zip from /usr/share/flutter/engine_sdk.zip. This has required gen_snapshot to generate an AOT image.
So once you have the libapp.so you create your bundle folder on target. This can be in /tmp or wherever you have write access to.
Create this folder structure on target. data/flutter_assets is from your host build/flutter_assets folder.
<bundle folder>
data
flutter_assets
lib
libapp.so
For DRM run:
`flutter-pi --release <bundle folder>`
For Wayland run:
`flutter-auto --w=1920 --h=720 --b=<bundle folder>
I may have missed something but that's the general flow. Feel free to start a discussion here so other meta-flutter users can benefit:
https://github.com/meta-flutter/meta-flutter/discussions
Cheers,
Joel