flutter_html2image 1.0.2 copy "flutter_html2image: ^1.0.2" to clipboard
flutter_html2image: ^1.0.2 copied to clipboard

A Flutter plugin to generate full content screenshot from raw HTML using platform-specific web engine.

100/ 160
pub points
20
downloads

We analyzed this package 9 hours ago, and awarded it 100 pub points (of a possible 160):

Partially passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Partially passed check 10/10 points: Provide a valid pubspec.yaml

Homepage URL doesn't exist.

At the time of the analysis https://github.com/feedmepos/flutter_printer/packages/flutter_html2image was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Failed report section
Provide documentation
0 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

0 out of 13 API elements (0.0 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: flutter_html2image, flutter_html2image.Html2Image, flutter_html2image.Html2Image.Html2Image.new, flutter_html2image.Html2Image.dispose, flutter_html2image.Html2Image.generateImage.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Failed report section
Platform support
0 / 20trigger folding of the section

Failed check 0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:flutter_html2image/flutter_html2image.dart that imports:
  • package:flutter_html2image/src/html2image.dart that imports:
  • package:puppeteer/puppeteer.dart that declares support for platforms: Windows, Linux, macOS, Web.
Package does not support platform `iOS`.

Because:

  • package:flutter_html2image/flutter_html2image.dart that imports:
  • package:flutter_html2image/src/html2image.dart that imports:
  • package:puppeteer/puppeteer.dart that declares support for platforms: Windows, Linux, macOS, Web.
Package does not support platform `Windows`.

Because:

  • package:flutter_html2image/flutter_html2image.dart that imports:
  • package:flutter_html2image/src/html2image.dart that imports:
  • package:flutter_inappwebview_forked/flutter_inappwebview.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:flutter_html2image/flutter_html2image.dart that imports:
  • package:flutter_html2image/src/html2image.dart that imports:
  • package:flutter_inappwebview_forked/flutter_inappwebview.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:flutter_html2image/flutter_html2image.dart that imports:
  • package:flutter_html2image/src/html2image.dart that imports:
  • package:flutter_inappwebview_forked/flutter_inappwebview.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:flutter_html2image/flutter_html2image.dart that imports:
  • package:flutter_html2image/src/html2image.dart that imports:
  • package:flutter_inappwebview_forked/flutter_inappwebview.dart that declares support for platforms: Android, iOS.
Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

INFO: Statements in an if should be enclosed in a block.

lib/src/merger.dart:19:7

   ╷
19 │       canvas.drawColor(backgroundColor, BlendMode.srcOver);
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/merger.dart

INFO: The variable name 'ImageToUint8List' isn't a lowerCamelCase identifier.

lib/src/merger.dart:52:29

   ╷
52 │   static Future<Uint8List?> ImageToUint8List(ui.Image image,
   │                             ^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/merger.dart

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
flutter_inappwebview_forked ^5.3.2+1 5.3.2+1 5.3.2+1
image ^3.0.2 3.3.0 4.7.2
puppeteer ^2.2.1 2.25.1 3.20.0
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 3.6.1 4.0.8
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
http - 0.13.6 1.6.0
http_parser - 4.1.2 4.1.2
logging - 1.3.0 1.3.0
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.18.1
path - 1.9.1 1.9.1
petitparser - 5.4.0 7.0.2
pool - 1.5.2 1.5.2
source_span - 1.10.2 1.10.2
stack_trace - 1.12.1 1.12.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
xml - 6.3.0 6.6.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^3.0.2` on image does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions image to update the constraint.

The constraint `^2.2.1` on puppeteer does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions puppeteer to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.9, Flutter 3.38.9, Dart 3.10.8.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
100
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to generate full content screenshot from raw HTML using platform-specific web engine.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_inappwebview_forked, image, puppeteer

More

Packages that depend on flutter_html2image