Skip to content

Commit 6fc66d4

Browse files
authored
Merge pull request #30 from Odinachi/main
2 parents 24c77d7 + ddcf7f1 commit 6fc66d4

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)