Example for UI distribution (casting)

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


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]


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)