MichaelFenwick / Color

A simple Dart package exposing a Color class which can be used to create, convert, and compare colors.
http://pub.dartlang.org/packages/color
MIT License
52 stars 18 forks source link

Importing blocks access to Color.lerp #22

Closed TonyMilton closed 3 years ago

TonyMilton commented 5 years ago

Color.lerp is static and it blocked when importing:

import 'package:color/color.dart';

I have tried to import just what I need, e.g: import 'package:color/hex_color.dart';

But IntelliJ IDEA says it imported library can't have a part of directive

MichaelFenwick commented 3 years ago

You can import a subset of a library by using the show keyword, as in import 'package:color/color.dart' show HslColor;