style: verbleibende flutter-analyze Deprecations beheben

withOpacity/activeColor/cacheExtent/PublicRoomsChunk durch die neuen
Flutter-3.44-Äquivalente ersetzt.
This commit is contained in:
Bernd Steckmeister
2026-07-03 09:40:10 +02:00
parent 90593d2f81
commit 057ac1e4ea
6 changed files with 26 additions and 19 deletions
+4 -5
View File
@@ -127,11 +127,10 @@ class _PyramidPainter extends CustomPainter {
Offset _proj(List<double> v, double sc, double cx, double cy, double tr) =>
Offset(cx + v[0] * sc, cy + (v[1] * cos(tr) + v[2] * sin(tr)) * sc);
Color _darken(Color c, double amount) => Color.fromARGB(
c.alpha,
max(0, (c.red * (1 - amount)).round()),
max(0, (c.green * (1 - amount)).round()),
max(0, (c.blue * (1 - amount)).round()),
Color _darken(Color c, double amount) => c.withValues(
red: max(0.0, c.r * (1 - amount)),
green: max(0.0, c.g * (1 - amount)),
blue: max(0.0, c.b * (1 - amount)),
);
@override