You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use FLutter, and instead of using the Emitter Dart client lib, its also possible to use the go client lib by compilng golang with gomobile.
Then its really easy to embed the gomobile lib inside Flutter. You can even use event streams.
I am raising this because its another way to get the same thing done and has some advantages:
reduces code maintenance
Using golang for the networking on both sides makes the whole thing more sturdy and when you fix a bug your fixing it on both sides.
Flutter Plugins for GO-Desktop work exactly the same on Mobile as on Desktop. SO you can use it for Desktop too.
Flutter Web can also use it by using gowasm.
Of course there are some bad things too:
More overhead because you have to pass through more layers, but for GUI its a minor hit and GUI is not where the bottleneck is.
More complexity for sure.
The text was updated successfully, but these errors were encountered:
Using JSON as the serialisation solves the FFI issues.
Also dart has FFI in beta. Its too early to use it but others are.
Then you can compile the golang as a c shared lib and call it from flutter..I will change to this approach in a month once dart FFI settles down.
I use FLutter, and instead of using the Emitter Dart client lib, its also possible to use the go client lib by compilng golang with gomobile.
Then its really easy to embed the gomobile lib inside Flutter. You can even use event streams.
I am raising this because its another way to get the same thing done and has some advantages:
Of course there are some bad things too:
The text was updated successfully, but these errors were encountered: