Flutter

Notes from working with Flutter.

Non-plugin native code

Problem: I want to prototype logic requiring native integration, eg service disco in iOS, before investing in plugin abstraction.

Solution: Flutter provides an RPC abstraction, so we can add native code per-platform, switching on method name.

Note invokeMethod returns a Future, which we can transform into a stream if necessary, eg streaming discovered services for visualization.

Feedback

Thoughts? Suggestions? Hit me up @erikeldridge

License

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 International License, and code samples are licensed under the MIT license.