tree: 006a3479c9cf6f825e34908f5b777b70d4dec954 [path history] [tgz]
  1. app/
  2. buildSrc/
  3. gradle/
  4. build.gradle
  5. gradlew
  6. gradlew.bat
  7. README.md
  8. settings.gradle
examples/distro/README.md

Example for UI distribution (casting)

This project demonstrates simple UI distribution across multiple devices. At this time, only unidirectional unicast is supported.

Building

To build this project:

  • Create a local.properties file with these entries:
    • sdk.dir=[path to the Android SDK]
    • flutter.sdk=[path to the Flutter SDK]

Technologies

This example uses [Vanadium RPC] (https://vanadium.github.io/concepts/rpc.html) for communication and [global mount table globbing] (https://vanadium.github.io/concepts/naming.html) for discovery.

Vanadium has a global discovery facility, but that is not currently surfaced in Java or Flutter/Dart. At present, all Vanadium usage is surfaced through Java, to Flutter as HostMessages.

This is based on the [hello_services] (https://github.com/flutter/flutter/tree/master/examples/hello_services) Flutter example.

Known issues

  • The app crashes after a while; seems to be in the Flutter internals.
  • The app will not start properly after first seeking blessings; restart the app. (flutter 4506)