Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 540 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 540 Bytes

Davinchi

Simple use case of the Click method.

NOTE: only use this if widget is present in the widget tree

Returns the Uint8List of the widget


image = await DavinciCapture.click(
context: context, imageKey, pixelRatio: 3);

Offstage method

Creates new widget pipeline and captures screenshot of the widget.

NOTE: IN this method widget doesn't require to be present in the widget tree.

  image = await DavinciCapture.offStage(
                    context: context, const PreviewWidget());