tag_styled_text 0.0.2 copy "tag_styled_text: ^0.0.2" to clipboard
tag_styled_text: ^0.0.2 copied to clipboard

Straightforward xml tag based (rich) styling on Text widgets

130/ 160
pub points
45
downloads

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

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

Passed check 10/10 points: Provide a valid pubspec.yaml

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: Apache-2.0.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

21 out of 58 API elements (36.2 %) have documentation comments.

Some symbols that are missing documentation: tag_styled_text, tag_styled_text.DefaultTagStyles.DefaultTagStyles.fallback, tag_styled_text.DefaultTagStyles.DefaultTagStyles.new, tag_styled_text.SpanTag.SpanTag.new, tag_styled_text.SpanTagGestureRecognizerBuilder.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Passed check 0/0 points: WASM compatibility

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

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

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 6 issues. Showing the first 2:

INFO: 'whereNotNull' is deprecated and shouldn't be used. Use .nonNulls instead.

lib/src/span_tag_builder.dart:71:10

   ╷
71 │         .whereNotNull()
   │          ^^^^^^^^^^^^
   ╵

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

INFO: Angle brackets will be interpreted as HTML.

lib/src/span_tags.dart:27:15

   ╷
27 │   ///   (e.g. <tag>Some text</tag>)
   │               ^^^^^
   ╵

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

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

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

Package Constraint Compatible Latest Notes
collection ^1.17.1 1.19.1 1.19.1
xml ^6.1.0 6.6.1 6.6.1
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.1
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.18.1
petitparser - 7.0.1 7.0.1
vector_math - 2.2.0 2.2.0

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

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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 2 errors:

  • UNDEFINED_GETTER - lib/src/span_tag_builder.dart:50:45 - The getter 'value' isn't defined for the type 'XmlText'.
  • UNDEFINED_GETTER - lib/src/span_tag_builder.dart:65:49 - The getter 'value' isn't defined for the type 'XmlText'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

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:
1
likes
130
points
45
downloads

Publisher

unverified uploader

Weekly Downloads

Straightforward xml tag based (rich) styling on Text widgets

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

collection, flutter, xml

More

Packages that depend on tag_styled_text