flutter_to_pdf 0.2.2 copy "flutter_to_pdf: ^0.2.2" to clipboard
flutter_to_pdf: ^0.2.2 copied to clipboard

A package to export any Flutter widget to a PDF-Document, PDF-Page or PDF-File. Further customization of the export process is possible through the export options.

53
likes
150/ 160
pub points
93%
popularity

We analyzed this package 2 days ago, and awarded it 150 pub points (of a possible 160):

partial
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/joseph-grabinger/flutter_to_pdf/issues 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.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

124 out of 301 API elements (41.2 %) have documentation comments.

Some symbols that are missing documentation: align, alignment, alignment.AlignmentConverter, alignment.AlignmentConverter.toPdfAlignment, alignment.AlignmentDirectionalConverter.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:flutter_to_pdf/flutter_to_pdf.dart that imports:
  • package:flutter_to_pdf/export_frame.dart that imports:
  • package:flutter_to_pdf/export_delegate.dart that imports:
  • package:flutter_to_pdf/options/export_options.dart that imports:
  • package:flutter_to_pdf/options/page_format_options.dart that imports:
  • package:pdf/pdf.dart that imports:
  • package:pdf/src/pdf/obj/ttffont.dart that imports:
  • package:pdf/src/pdf/obj/unicode_cmap.dart that imports:
  • package:pdf/src/pdf/obj/object_stream.dart that imports:
  • package:pdf/src/pdf/obj/object.dart that imports:
  • package:pdf/src/pdf/document.dart that imports:
  • package:pdf/src/pdf/io/vm.dart that imports:
  • dart:isolate

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 26 issues. Showing the first 2:

INFO: Use 'TypeName _' instead of a type literal.

lib/widgets/button.dart:62:12

   ╷
62 │       case CircleBorder:
   │            ^^^^^^^^^^^^
   ╵

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

INFO: Use 'TypeName _' instead of a type literal.

lib/widgets/button.dart:64:12

   ╷
64 │       case StadiumBorder:
   │            ^^^^^^^^^^^^^
   ╵

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

OK
Support up-to-date dependencies
40 / 40trigger folding of the section

10/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
pdf ^3.10.8 3.11.1 3.11.1
Transitive dependencies
Package Constraint Compatible Latest
archive - 3.6.1 3.6.1
barcode - 2.2.8 2.2.8
bidi - 2.0.12 2.0.12
characters - 1.3.0 1.3.1
collection - 1.18.0 1.19.1
crypto - 3.0.6 3.0.6
image - 4.3.0 4.3.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
path - 1.9.1 1.9.1
path_parsing - 1.1.0 1.1.0
petitparser - 6.0.2 6.0.2
qr - 3.0.2 3.0.2
sky_engine - 0.0.99 0.0.99
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
xml - 6.5.0 6.5.0

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

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Flutter 3.24.5, Dart 3.5.4.

Check the analysis log for details.

53
likes
150
pub points
93%
popularity

Publisher

verified publisherdunef.com

A package to export any Flutter widget to a PDF-Document, PDF-Page or PDF-File. Further customization of the export process is possible through the export options.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

flutter, pdf

More

Packages that depend on flutter_to_pdf