fix: withOpacity au lieu de withValues (API Flutter 3.24)
Build APK / build (push) Failing after 2m29s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
neckfire
2026-07-13 09:38:23 +02:00
co-authored by Claude Opus 4.8
parent 7cde9b9d19
commit fac757d9a0
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class _LoginScreenState extends State<LoginScreen> {
gradient: LinearGradient( gradient: LinearGradient(
begin: Alignment.topLeft, begin: Alignment.topLeft,
end: Alignment.bottomRight, end: Alignment.bottomRight,
colors: [scheme.primary.withValues(alpha: 0.25), scheme.surface], colors: [scheme.primary.withOpacity(0.25), scheme.surface],
), ),
), ),
child: SafeArea( child: SafeArea(
+5 -5
View File
@@ -51,7 +51,7 @@ class ServerCard extends StatelessWidget {
if (server.subtitle != null) if (server.subtitle != null)
Text(server.subtitle!, Text(server.subtitle!,
style: TextStyle( style: TextStyle(
color: Colors.white.withValues(alpha: 0.75), fontSize: 13)), color: Colors.white.withOpacity(0.75), fontSize: 13)),
], ],
), ),
), ),
@@ -72,7 +72,7 @@ class ServerCard extends StatelessWidget {
Expanded( Expanded(
child: Text(server.connect!, child: Text(server.connect!,
style: TextStyle( style: TextStyle(
color: Colors.white.withValues(alpha: 0.7), color: Colors.white.withOpacity(0.7),
fontFamily: 'monospace', fontFamily: 'monospace',
fontSize: 12), fontSize: 12),
maxLines: 1, maxLines: 1,
@@ -113,7 +113,7 @@ class _Icon extends StatelessWidget {
} }
Widget _fallbackBox() => Container( Widget _fallbackBox() => Container(
color: Colors.white.withValues(alpha: 0.15), color: Colors.white.withOpacity(0.15),
child: Icon(fallback, color: Colors.white, size: 28), child: Icon(fallback, color: Colors.white, size: 28),
); );
} }
@@ -129,7 +129,7 @@ class _StatusPill extends StatelessWidget {
return Container( return Container(
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 5), padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 5),
decoration: BoxDecoration( decoration: BoxDecoration(
color: color.withValues(alpha: 0.22), color: color.withOpacity(0.22),
borderRadius: BorderRadius.circular(999), borderRadius: BorderRadius.circular(999),
border: Border.all(color: color, width: 1), border: Border.all(color: color, width: 1),
), ),
@@ -156,7 +156,7 @@ class _ToggleButton extends StatelessWidget {
return FilledButton.icon( return FilledButton.icon(
onPressed: busy ? null : onToggle, onPressed: busy ? null : onToggle,
style: FilledButton.styleFrom( style: FilledButton.styleFrom(
backgroundColor: up ? Colors.white.withValues(alpha: 0.9) : Colors.white, backgroundColor: up ? Colors.white.withOpacity(0.9) : Colors.white,
foregroundColor: up ? const Color(0xFFB3261E) : const Color(0xFF1B5E20), foregroundColor: up ? const Color(0xFFB3261E) : const Color(0xFF1B5E20),
), ),
icon: busy icon: busy