WidgetsToImageKey extension
- on
Methods
-
renderImage(
{double pixelRatio = 6}) → Future< Image?> -
Available on GlobalKey<
Render a image from widget by this GlobalKey and return as ui.Image. Remember to surround your widget with WidgetsToImage and give it this GlobalKeyState< , provided by the WidgetsToImageKey extensionStatefulWidget> > -
renderImageAsBytes(
{double pixelRatio = 6, ImageByteFormat format = ui.ImageByteFormat.png}) → Future< bytes> -
Available on GlobalKey<
Render a image from widget by this GlobalKey and return as bytes Remember to surround your widget with WidgetsToImage and give it this GlobalKeyState< , provided by the WidgetsToImageKey extensionStatefulWidget> > -
saveImage(
{required File file, double pixelRatio = 6, ImageByteFormat format = ui.ImageByteFormat.png}) → Future< File> -
Available on GlobalKey<
Render a image from widget by this GlobalKey and save it toState< , provided by the WidgetsToImageKey extensionStatefulWidget> >file
. Remember to surround your widget with WidgetsToImage and give it this GlobalKey