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.

0
likes
70/ 140
pub points
0%
popularity

We analyzed this package 17 hours ago, and awarded it 70 pub points (of a possible 140):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/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.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

failed
Provide documentation
0 / 20trigger folding of the section

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.

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

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

failed
Platform support
0 / 20trigger folding of the section

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.
partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 4 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
Support up-to-date dependencies
10 / 20trigger folding of the section

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

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
flutter_inappwebview_forked ^5.3.2+1 5.3.2+1 5.3.2+1
image ^3.0.2 3.3.0 4.1.7
puppeteer ^2.2.1 2.24.0 3.9.0
Transitive dependencies
Package Constraint Compatible Latest
archive - 3.4.10 3.4.10
async - 2.11.0 2.11.0
characters - 1.3.0 1.3.0
collection - 1.18.0 1.18.0
convert - 3.1.1 3.1.1
crypto - 3.0.3 3.0.3
http - 0.13.6 1.2.1
http_parser - 4.0.2 4.0.2
js - 0.7.1 0.7.1
logging - 1.2.0 1.2.0
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
path - 1.9.0 1.9.0
petitparser - 5.4.0 6.0.2
pointycastle - 3.9.0 3.9.0
pool - 1.5.1 1.5.1
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
stack_trace - 1.11.1 1.11.1
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
vector_math - 2.1.4 2.1.4
xml - 6.3.0 6.5.0

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.

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

Analyzed with Pana 0.22.3, Flutter 3.19.5, Dart 3.3.3.

Check the analysis log for details.

0
likes
70
pub points
0%
popularity

Publisher

unverified uploader

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_inappwebview_forked, image, puppeteer

More

Packages that depend on flutter_html2image