go-flutter-desktop / go-flutter

Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
https://hover.build/
BSD 3-Clause "New" or "Revised" License
5.84k stars 286 forks source link

Mobile support? #670

Closed prologic closed 2 years ago

prologic commented 2 years ago

This is not really a feature request per se, if you open up the "Discussions" feature, feel free to convert this to a discussion.

Q: Is Mobile support possible and well supported as per this blog post and old codebase showing how to do this?

Thanks!

pchampio commented 2 years ago

I didn't know this blog post. It does a nice introduction of go-flutter!

go-flutter is another desktop embedder. image

no work has been done into making into making it compatible for mobile. I'll argue that the official iOS and Android embedders are simply the best and do not need alternative, the is no plan to make go-flutter compatible for mobile.


This project exist because, one of the advantages of go-flutter is golang:

The choice of Golang comes from the fact that it has the same tooling on every platform. Plus Golang is a great language because it keeps everything simple and readable, which makes it easy to build cross-platform plugins.

While not documented one could build a generic golang library and compile it to be used by official iOS and Android embedders here is an example, additional this golang library can also directly be used as a go-flutter plugin.

An example of a such plugin is: https://github.com/jerson/flutter-rsa


To answer your question:

Is Mobile support possible

Not at the embedder / tooling / ios/android packaging level, don't expect so see a hover build ios / hover build android any time. On the other hand Golang plugin are by support by all embedders, but it's kinda of niche application.

If you have any other question, feel free to ask!