-
Notifications
You must be signed in to change notification settings - Fork 282
Plugins support #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Again, Thanks for your suggestion 💯,
Before implementing those desktop services, we need
|
hey @Drakirus i think the last comment is the most important. How are plugins loaded ? Shared libs:
RPC:
So far i see nothing to really help. Right now i feel like its best to actually support BO Compiled in:
What i would prefer is to use interfaces to support both RPC and Compiled in plugins. Its sort of a have both if you need it option. Luckily the Hashicorp package uses plain golang interfaces too so its easy to support both using Inversion of Control pattern. my 2 cents Summary: -- Regarding the Printing.... The idea with screen scraping is to take a screen grab of the flutter screen. Thats all. I know of a golang lib that does that very well. However, it means that the resolution though is only screen resolution and so will look bad when printed. Its a terrible option. |
Did you see this ? https://github.com/adieu/flutter_go It's a way to plugin golang into flutter on mobile. It's simple and works with zero messing around with java or objective c. This is what might be cool for desktop I was thinking. Then using g your your golang lib between mobile and desktop is the same The jaguer library for dart is what I use for the dart side. Very nice code and we'll done. This also allows you to use the same RPC approach between flutter client and a golang server somewhere else physically too. For 3d stuff though plugging directly in is probably better. Like what the ebiten project does with golang on mobile. Food for thought ? |
now there is a grpc approach also. Quite nice since it supports both gomobile and go. So can be used for Mobiles and Desktops. |
Those golang libs are looking good. But they are kind of niche. I don't see many cases where you would use those 'codec' instead of the ones that are already exposed. A lot of work needs to be done to implement the |
Did you see the JSON RPC one ? Here is my make file for it:
|
Yup I did saw it, but for now, I only want to keep the standard related work in this repo. Another golang lib could be made later to bridge their stuff into this project. |
ok, makes sense :) |
I just made a PR #20 |
These are two desktop services I am thinking of adding and I want feedback
Notifications.
There are good golang packages for this so should be easy to do native notification.
Unilinks is when a user gets an email with a deeplinking into the flutter app. When they click the link it opens the flutter app and routes into the link.
Unilinks is the name of the flutter for mobile plugin and so we can reuse the Dart code and replace the java and objective c with golang. I am not sure what's already out there in terms of golang libs for this but I am confident it's doable.
Printing
Dart has pdf gen but golang has great pdf gen. Assuming we want to go with the PDF approach ? Other way is to take a screen Scape raster image and bundle it inside a pdf. Both are useful.
Then there is sending it to a printer. There are some decent golang libs for this.
If I can get feedback, and I will start working on these.
The text was updated successfully, but these errors were encountered: