Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 913 Bytes

File metadata and controls

25 lines (14 loc) · 913 Bytes

test_screenshot

A sample project to capture image from widget for flutter web html.
In general boundary?.toImage() doesn't work on flutter web html version. So we have use a JS library html2canvas to take snapshot of widget.

Getting Started

To run the project

flutter run -d Chrome

To run the project as HTML

  flutter run --web-renderer html -d Chrome

** Image**

drawing

Known Issue

  1. html2canvas take screenshot from the given area. So if something floats on top the area then it will be captured.
  2. Some style properties are not supported eg. Color Filter. more details
  3. Custom ClipPath is getting ignored scene flutter 3.0