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();