support for flutter 3.27 and removed deprecation warnings

This commit is contained in:
rjahn 2025-01-14 15:54:29 +01:00
parent 41356d7a78
commit 6985aa366b
7 changed files with 116 additions and 80 deletions

View file

@ -9,7 +9,7 @@ class Utilities {
static const Color WHITE = Color.fromARGB(255, 255, 255, 255);
static String toRGBA(Color color) {
return 'rgba(${color.red},${color.green},${color.blue},${color.alpha / 255})';
return 'rgba(${color.r},${color.g},${color.b},${color.a / 255})';
}
static Color textColor(Color color) {