Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[packages][accounts] Replace deprecated withOpacity with withValues

ashilkn340abd614613
diff --git a/mobile/packages/accounts/lib/pages/two_factor_authentication_page.dart b/mobile/packages/accounts/lib/pages/two_factor_authentication_page.dart
index 8014b6eda1..49d6ae09d7 100644
--- a/mobile/packages/accounts/lib/pages/two_factor_authentication_page.dart
+++ b/mobile/packages/accounts/lib/pages/two_factor_authentication_page.dart
@@ -100,7 +100,7 @@ class _TwoFactorAuthenticationPageState
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20.0),
border: Border.all(
- color: colorScheme.strokeMuted.withOpacity(0.5),
+ color: colorScheme.strokeMuted.withValues(alpha: 0.5),
),
),
),
@@ -109,7 +109,7 @@ class _TwoFactorAuthenticationPageState
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10.0),
border: Border.all(
- color: colorScheme.strokeMuted.withOpacity(0.5),
+ color: colorScheme.strokeMuted.withValues(alpha: 0.5),
),
),
),