@utils/src/capture_widget library

Functions

captureWidget(GlobalKey<State<StatefulWidget>> captureKey, BuildContext context, {double quality = 1.0}) Future<CustomPaint>
Captures a screenshot of the widget associated with the given captureKey and returns a CustomPaint widget of the same displaying the captured image. The quality parameter can be used to adjust the quality of the capture (0.0 > quality <= 1.0).