support for flutter 3.27 and removed deprecation warnings
This commit is contained in:
parent
41356d7a78
commit
6985aa366b
7 changed files with 116 additions and 80 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue