fff 1.0.1

Dart native js
Flutter Android iOS web

Dart package for convenient work with color. It will allow you to convert colors between rgb, rgba and hex formats.

1
likes
90 / 110
pub points
65 %
popularity

We analyzed this package on Oct 15, 2020, and awarded it 90 pub points (of a possible 110):

Follow Dart file conventions
10 / 20

10/10 points: Provide a valid pubspec.yaml

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 link is insecure.

README.md:97:58

   ╷
97 │ <p>Presets library contains 275 constants of colors from <a href="http://www.google.com/design/spec/style/color.html">Material design</a></p>
   │                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

Use https URLs instead.

0/5 points: Provide a valid CHANGELOG.md

Links in `CHANGELOG.md` should be secure. 1 link is insecure.

CHANGELOG.md:29:20

   ╷
29 │ <li>Add 275 preset <a href="http://www.google.com/design/spec/style/color.html">Material design</a></li>
   │                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

Use https URLs instead.

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/main.dart

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

  • 300 out of 311 API elements (96.5 %) have documentation comments.
Support multiple platforms
20 / 20

20/20 points: Supports 2 of 2 possible platforms (native, js)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 310 issues. Showing the first 2:

INFO: Unnecessary new keyword.

lib/color.dart:39:12

   ╷
39 │       return new Color(
   │ ┌────────────^
40 │ │         min(red + other.red, 255),
41 │ │         min(green + other.green, 255),
42 │ │         min(blue + other.blue, 255),
43 │ │         alpha == null
44 │ │             ? alpha
45 │ │             : min(alpha + (other.alpha == null ? 1.0 : other.alpha), 1.0));
   │ └──────────────────────────────────────────────────────────────────────────^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/color.dart

INFO: Unnecessary new keyword.

lib/color.dart:49:12

   ╷
49 │       return new Color(
   │ ┌────────────^
50 │ │         max(red - other.red, 0),
51 │ │         max(green - other.green, 0),
52 │ │         max(blue - other.blue, 0),
53 │ │         alpha == null
54 │ │             ? alpha
55 │ │             : max(alpha - (other.alpha == null ? 1.0 : other.alpha), 0.0));
   │ └──────────────────────────────────────────────────────────────────────────^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/color.dart

Support up-to-date dependencies
20 / 20

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

No dependencies.

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

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

1
likes
90
pub points
65%
popularity

Dart package for convenient work with color. It will allow you to convert colors between rgb, rgba and hex formats.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

atlantidu@gmail.com

License

BSD (LICENSE)

More

Packages that depend on fff