widgets_to_png 1.0.1
widgets_to_png: ^1.0.1 copied to clipboard
A Flutter package that allows converting any widget to a PNG image and saving it to the device gallery.
1.0.0 #
- Initial release of
widgets_to_png. - Added
WidgetToPngwidget to wrap any widget for image capturing. - Implemented
ImageConverterclass with methods to:- Capture widget as bytes with
captureWidgetToBytes. - Save captured bytes to a temporary file with
saveBytesToFile. - Convert captured bytes to
XFilewithconvertBytesToXFile. - Save captured widget directly to the gallery with
saveWidgetToGallery.
- Capture widget as bytes with
- Added
ImageQualityenum to specify the quality of the captured image. - Included assertions to ensure either
imageQualityorcustomImageQualityis provided, but not both or none.
1.0.1 #
- Added usage example in the documentation.