json_theme 3.3.1 copy "json_theme: ^3.3.1" to clipboard
json_theme: ^3.3.1 copied to clipboard

outdated

A library to dynamically generate a ThemeData object from a JSON file or dynamic map object

97
likes
80/ 160
pub points
96%
popularity

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

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

10/10 points: Provide a valid pubspec.yaml

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

337 out of 1017 API elements (33.1 %) have documentation comments.

Some symbols that are missing documentation: json_theme, json_theme.ThemeEncoder.encodeBlurStyle, json_theme_schemas, json_theme_schemas.AlignmentSchema, json_theme_schemas.AlignmentSchema.AlignmentSchema.

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

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

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

failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 319 issues. Showing the first 2:

ERROR: Undefined class 'Overflow'.

lib/src/codec/theme_decoder.dart:6897:10

     ╷
6897 │   static Overflow? decodeOverflow(
     │          ^^^^^^^^
     ╵

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

ERROR: Undefined class 'Overflow'.

lib/src/codec/theme_decoder.dart:6902:5

     ╷
6902 │     Overflow? result;
     │     ^^^^^^^^
     ╵

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

failed
Support up-to-date dependencies
10 / 40trigger 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
json_class ^2.1.2+4 2.2.2+1 3.0.0+16
json_schema2 ^2.0.1+1 2.0.4+9 5.1.3
meta ^1.7.0 1.15.0 1.16.0
Transitive dependencies
Package Constraint Compatible Latest
args - 2.6.0 2.6.0
async - 2.12.0 2.12.0
boolean_selector - 2.1.2 2.1.2
characters - 1.3.0 1.3.1
clock - 1.1.2 1.1.2
collection - 1.18.0 1.19.1
crypto - 3.0.6 3.0.6
fixnum - 1.1.1 1.1.1
http - 1.2.2 1.2.2
http_parser - 4.0.2 4.1.1
intl - 0.18.1 0.20.0
logging - 1.3.0 1.3.0
matcher - 0.12.17 0.12.17
material_color_utilities - 0.11.1 0.12.0
path - 1.9.1 1.9.1
quiver - 3.2.2 3.2.2
rest_client - 2.4.0 2.4.0
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
sprintf - 7.0.0 7.0.0
stack_trace - 1.12.0 1.12.0
stream_channel - 2.1.2 2.1.2
string_scanner - 1.4.0 1.4.0
term_glyph - 1.2.1 1.2.1
test_api - 0.7.3 0.7.3
typed_data - 1.4.0 1.4.0
uri - 1.0.0 1.0.0
uuid - 4.5.1 4.5.1
vector_math - 2.1.4 2.1.4
web - 1.1.0 1.1.0
yaml - 3.1.2 3.1.2
yaon - 1.1.4+10 1.1.4+10

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

The constraint `^2.1.2+4` on json_class does not support the stable version `3.0.0`.

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

The constraint `^2.0.1+1` on json_schema2 does not support the stable version `5.1.2`.

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

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 27 errors:

  • UNDEFINED_CLASS - lib/src/codec/theme_decoder.dart:6897:10 - Undefined class 'Overflow'.
  • UNDEFINED_CLASS - lib/src/codec/theme_decoder.dart:6902:5 - Undefined class 'Overflow'.
  • TYPE_TEST_WITH_UNDEFINED_NAME - lib/src/codec/theme_decoder.dart:6905:18 - The name 'Overflow' isn't defined, so it can't be used in an 'is' expression.

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.22.15, Flutter 3.24.4, Dart 3.5.4.

Check the analysis log for details.

97
likes
80
pub points
96%
popularity

Publisher

verified publisherpeifferinnovations.com

A library to dynamically generate a ThemeData object from a JSON file or dynamic map object

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, json_class, json_schema2, meta

More

Packages that depend on json_theme