File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import 'dart:ui' ;
2
2
3
- import 'package:flutter_color_models/flutter_color_models.dart' ;
3
+ import 'package:flutter_color_models/flutter_color_models.dart' as flutter_color_models ;
4
4
5
5
// This function promises to deal with "LCH" lightness, not "LAB" lightness,
6
6
// but it's not yet true. We haven't found a Dart libary that can work with LCH:
@@ -11,7 +11,7 @@ import 'package:flutter_color_models/flutter_color_models.dart';
11
11
//
12
12
// TODO try LCH; see linked discussion
13
13
Color clampLchLightness (Color color, num lowerLimit, num upperLimit) {
14
- final asLab = LabColor .fromColor (color);
14
+ final asLab = flutter_color_models. LabColor .fromColor (color);
15
15
return asLab
16
16
.copyWith (lightness: asLab.lightness.clamp (lowerLimit, upperLimit))
17
17
.toColor ();
You can’t perform that action at this time.
0 commit comments