Skip to content

Commit ddcf7f1

Browse files
committed
fix color issue
1 parent 24c77d7 commit ddcf7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/utils/color_util.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'dart:ui' show Color;
33
final class ColorUtils {
44

55
static String colorToRgba(Color color) {
6-
return 'rgba(${(color.r * 255).toInt()}, ${(color.g * 255).toInt()}, ${(color.b * 255).toInt()}, ${color.a})';
6+
return 'rgba(${(color.red * 255).toInt()}, ${(color.green * 255).toInt()}, ${(color.blue * 255).toInt()}, ${color.opacity})';
77
}
88

99
}

0 commit comments

Comments
 (0)