parth181195 / flutter_widget_to_image

76 stars 24 forks source link

DPI #1

Open ghost opened 6 years ago

ghost commented 6 years ago

I want to use this to print screens. Did you find a way to get flutter to paint at a high DPI before capturing the image ?

parth181195 commented 6 years ago

you can change the pixel ratio ui.Image image = await boundary.toImage(pixelRatio: 3.0);

ghost commented 6 years ago

ah thats what the 3.0 is for . Was curious what that was doing there. Will try it !