Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing blocks access to Color.lerp #22

Closed
TonyMilton opened this issue Feb 12, 2019 · 1 comment
Closed

Importing blocks access to Color.lerp #22

TonyMilton opened this issue Feb 12, 2019 · 1 comment

Comments

@TonyMilton
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants