TF-3586: Upgrade Flutter to 3.27.4

This commit is contained in:
DatDang
2025-03-25 15:53:01 +07:00
committed by Dat H. Pham
parent c7f5dc9e5e
commit 4fd0931c9e
109 changed files with 361 additions and 372 deletions
@@ -284,7 +284,15 @@ extension AppColor on Color {
[Color(0xFF87A6F8), Color(0xFF645FF6)],
];
String toHexTriplet() => '#${(value & 0xFFFFFF)
int toInt() {
final alpha = (a * 255).toInt();
final red = (r * 255).toInt();
final green = (g * 255).toInt();
final blue = (b * 255).toInt();
return (alpha << 24) | (red << 16) | (green << 8) | blue;
}
String toHexTriplet() => '#${(toInt() & 0xFFFFFF)
.toRadixString(16)
.padLeft(6, '0')
.toUpperCase()}';