A color library for creating, converting and manipulating colors.
- Initial release.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: chroma: ^0.1.0-dev
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jul 14, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.8.4
- pana: 0.13.15
- Flutter: 1.17.5
Package not compatible with SDK dart
chromathat is a package requiring null.
lib/src/chroma_base.dart. (-1 points)
lib/src/chroma_base.dart reported 2 hints:
line 81 col 14: This function has a return type of 'String', but doesn't end with a return statement.
line 277 col 10: This function has a return type of 'String', but doesn't end with a return statement.
lib/src/color/named_colors.dart. (-0.50 points)
lib/src/color/named_colors.dart reported 1 hint:
line 3 col 6: This function has a return type of 'List
lib/src/conversions/conversions.dart. (-0.50 points)
lib/src/conversions/conversions.dart reported 1 hint:
line 1 col 8: Unused import: 'package:chroma/chroma.dart'.
lib/src/utils.dart. (-0.50 points)
lib/src/utils.dart reported 1 hint:
line 62 col 8: This function has a return type of 'double', but doesn't end with a return statement.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
chroma.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
Package is pre-release. (-5 points)
Pre-release versions should be used with caution; their API can change in breaking ways.