The Flutter Embedder for Fuchsia is a new in-progress runtime for Flutter apps on Fuchsia. This runtime is built on top of Flutter's embedder platform.
TODO(akbiggs): The embedder is very early days and does not render apps yet.
TODO(akbiggs): Port this workflow to using OOT workstation instead of in-tree.
$WORKSTATION_REPO is set to your workstation.git checkout directory.
$FUCHSIA_DIR is set to your fuchsia.git checkout directory.
flutter tool is in your
Cherry-pick https://fxrev.dev/664586 into your fuchsia.git checkout directory:
pushd && cd $FUCHSIA_DIR && git fetch https://fuchsia.googlesource.com/fuchsia refs/changes/86/664586/1 && git cherry-pick FETCH_HEAD && popd
Boot up Workstation in an emulator:
cd $FUCHSIA_DIR && fx set workstation.x64 && fx build && fx vdl start -N
In a second terminal, start your package server:
cd $FUCHSIA_DIR && fx serve
In a third terminal, build and run the sample app:
This is a temporary location. The long-term location for this embedder is flutter-embedder.git. We are not storing this embedder in there for now because it is easier to prototype and develop the embedder using the build rules in workstation.git and with direct access to the Workstation code.
We should migrate this code to flutter-embedder.git once the Bazel SDK is more stable.
This is an unoptimized build of the Flutter embedder platform built for
OS_FUCHSIA. This build contains a few changes that have not been landed into the Flutter Engine repository:
These changes should be landed and
libflutter_engine.so should be pulled from a CIPD bucket instead.
This is a copy of the Flutter embedder platform header from the Engine repository: https://github.com/flutter/engine/blob/main/shell/platform/embedder/embedder.h
The git hash of Flutter Engine that the Engine artifacts come from. Currently, this is purely for developer reference and is not used by any tooling.