We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 24c77d7 + ddcf7f1 commit 6fc66d4Copy full SHA for 6fc66d4
lib/src/utils/color_util.dart
@@ -3,7 +3,7 @@ import 'dart:ui' show Color;
3
final class ColorUtils {
4
5
static String colorToRgba(Color color) {
6
- return 'rgba(${(color.r * 255).toInt()}, ${(color.g * 255).toInt()}, ${(color.b * 255).toInt()}, ${color.a})';
+ return 'rgba(${(color.red * 255).toInt()}, ${(color.green * 255).toInt()}, ${(color.blue * 255).toInt()}, ${color.opacity})';
7
}
8
9
0 commit comments