Comments (6)
I guess we could try glReadPixels
which captures the OpenGL window into a memory buffer. (Need to format the data to jpg manually).
This is the role of the embedder to perform those low-level tasks. I am not against having this by default into the embedder.
(I prefer the issue over the readme's todo list)
from go-flutter.
What about https://stackoverflow.com/questions/51117958/how-to-take-a-screenshot-of-the-current-widget-flutter/51118088 ?
from go-flutter.
this looks like a good mvp approach for now to get things going. Its also pure dart and so runs anywhere. That will get us a raster image and from there we can decide what to do with it.
EDIT.
In the back of my mind have been usign the golang and dart PDF generation stuff and so far the golang stuff is way ahead.
SO once we get the image, we can them pump in into a PDF template for both mobile and desktop to produce a PDF with the image inside.
Then its bespoke code for each platform to print it.
Thats my current thinking.
But until you have cemented in the Plugin API, its hard to see how i can use the golag PDF on both mobile and desktop. Just so you know... Hopefully your thiking about reuse of golang code across both mobile and desktop ?
from go-flutter.
"Hopefully your thinking about reuse of golang code across both mobile and desktop ?"
If you want to reuse golang's code across both mobile and desktop, you will have to write a go-flutter-desktop-embedder's plugin which will proxy your plugin's request/response to something like https://github.com/adieu/flutter_go.
from go-flutter.
Thanks for the heads up
I think I can easily deal with that.
This project is awesome
from go-flutter.
There is even a pub plugin for screenshot (no platform message needed)
Closing for cleanup.
from go-flutter.
Related Issues (20)
- Does the hover build command display content that does not support compiling for android or ios?
- Render problem in linux HOT 7
- [Flutter 3] There is no hot-reload in Hover v0.47.0 HOT 5
- no handler found for channel flutter/restoration HOT 1
- Mobile support? HOT 1
- arm linux supper
- Hover bug HOT 2
- Auto-Updating app like discord or telegram desktops
- It is very difficult to transfer data between go language and flutter HOT 1
- how to show golang runtime log not hover log?
- Unable to build anything (no .packages file) HOT 2
- How to debug golang code? HOT 1
- General Question: how is this different from flutter's own desktop solution HOT 1
- Example project 'stocks' doesn't work HOT 2
- build windows release failure HOT 3
- Can I use it on the arm64 Linux platform now HOT 1
- `hover run` not runed HOT 2
- can not run any demo HOT 6
- hover: failed to read the 'go.mod' file: C:\Users\Administrator\Downloads\my_app\go\go.mod: C:\Users\Administrator\Downloads\my_app\go\go.mod:3: invalid go version '1.21.5': must match format 1.23 HOT 1
- Error running hover examples (libflutter_engine.so: no such file or directory)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-flutter.