chroma 0.1.0-dev

  • Readme
  • Changelog
  • Installing
  • 50

Chroma logo

Build Status codecov style: effective dart #

A color library for creating, converting and manipulating colors.

0.1.0-dev #

  • 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:

with Flutter:


$ 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:


import 'package:chroma/chroma.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
6
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
85
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

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

Analysis suggestions

Package not compatible with SDK dart

Because:

  • chroma that is a package requiring null.

Health suggestions

Fix lib/src/chroma_base.dart. (-1 points)

Analysis of 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.

Fix lib/src/color/named_colors.dart. (-0.50 points)

Analysis of lib/src/color/named_colors.dart reported 1 hint:

line 3 col 6: This function has a return type of 'List

Fix lib/src/conversions/conversions.dart. (-0.50 points)

Analysis of lib/src/conversions/conversions.dart reported 1 hint:

line 1 col 8: Unused import: 'package:chroma/chroma.dart'.

Fix lib/src/utils.dart. (-0.50 points)

Analysis of 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.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and chroma.dart. Packages with multiple examples should provide example/README.md.

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.2
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies
effective_dart ^1.1.0
flutter_test