From 6ae45fd371c7c6d526e9b7c4204891111ead6d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20M=C3=A9ndez?= Date: Sat, 23 May 2026 03:55:45 -0600 Subject: [PATCH] fix: actualizar la forma de aplicar opacidad en colores de tema en PrivacyNoticeCard y ScheduleWarningBanner --- .../auth/presentation/widgets/privacy_notice_card.dart | 8 ++++---- test/widget_test.dart | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/features/auth/presentation/widgets/privacy_notice_card.dart b/lib/features/auth/presentation/widgets/privacy_notice_card.dart index 04adb88..8e52e19 100644 --- a/lib/features/auth/presentation/widgets/privacy_notice_card.dart +++ b/lib/features/auth/presentation/widgets/privacy_notice_card.dart @@ -17,7 +17,7 @@ class PrivacyNoticeCard extends StatelessWidget { color: AppTheme.lightMint, borderRadius: BorderRadius.circular(12), border: Border.all( - color: AppTheme.mintGreen.withOpacity(0.3), + color: AppTheme.mintGreen.withValues(alpha: 0.3), width: 1, ), ), @@ -85,7 +85,7 @@ class _PrivacyPoint extends StatelessWidget { text, style: TextStyle( fontSize: 12, - color: AppTheme.forestGreen.withOpacity(0.85), + color: AppTheme.forestGreen.withValues(alpha: 0.85), height: 1.4, ), ), @@ -105,10 +105,10 @@ class ScheduleWarningBanner extends StatelessWidget { return Container( padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10), decoration: BoxDecoration( - color: AppTheme.alertAmber.withOpacity(0.10), + color: AppTheme.alertAmber.withValues(alpha: 0.10), borderRadius: BorderRadius.circular(10), border: Border.all( - color: AppTheme.alertAmber.withOpacity(0.35), + color: AppTheme.alertAmber.withValues(alpha: 0.35), width: 1, ), ), diff --git a/test/widget_test.dart b/test/widget_test.dart index e69304c..b203823 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -11,7 +11,7 @@ import 'package:flutter_test/flutter_test.dart'; // Use a local test app to avoid depending on external package imports // which may not exist in the test environment. class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override State createState() => _MyAppState();