@@ -114,11 +114,11 @@ class _StyleScreenState extends State<StyleScreen> {
114114 colors: brightness == Brightness .dark
115115 ? [
116116 theme.colorScheme.primaryContainer,
117- theme.colorScheme.primaryContainer.withOpacity ( 0.7 ),
117+ theme.colorScheme.primaryContainer.withValues (alpha : 0.7 ),
118118 ]
119119 : [
120120 theme.colorScheme.primaryContainer,
121- theme.colorScheme.secondaryContainer.withOpacity ( 0.5 ),
121+ theme.colorScheme.secondaryContainer.withValues (alpha : 0.5 ),
122122 ],
123123 ),
124124 border: Border (
@@ -160,7 +160,7 @@ class _StyleScreenState extends State<StyleScreen> {
160160 height: 8 - (index * 1.2 ),
161161 decoration: BoxDecoration (
162162 shape: BoxShape .circle,
163- color: accentColor.withOpacity ( 0.2 - (index * 0.03 )),
163+ color: accentColor.withValues (alpha : 0.2 - (index * 0.03 )),
164164 ),
165165 ),
166166 ),
@@ -179,10 +179,10 @@ class _StyleScreenState extends State<StyleScreen> {
179179 width: 56 ,
180180 height: 56 ,
181181 decoration: BoxDecoration (
182- color: accentColor.withOpacity ( 0.2 ),
182+ color: accentColor.withValues (alpha : 0.2 ),
183183 borderRadius: BorderRadius .circular (12 ),
184184 border: Border .all (
185- color: accentColor.withOpacity ( 0.4 ),
185+ color: accentColor.withValues (alpha : 0.4 ),
186186 width: 2 ,
187187 ),
188188 ),
@@ -247,27 +247,27 @@ class _StyleScreenState extends State<StyleScreen> {
247247
248248 if (cat.contains ('beer' )) {
249249 return brightness == Brightness .dark
250- ? colorScheme.secondary.withOpacity ( 0.8 )
250+ ? colorScheme.secondary.withValues (alpha : 0.8 )
251251 : colorScheme.secondary;
252252 } else if (cat.contains ('cider' )) {
253253 return brightness == Brightness .dark
254- ? const Color (0xFF8BC34A ).withOpacity ( 0.8 )
254+ ? const Color (0xFF8BC34A ).withValues (alpha : 0.8 )
255255 : const Color (0xFF689F38 );
256256 } else if (cat.contains ('perry' )) {
257257 return brightness == Brightness .dark
258- ? const Color (0xFFCDDC39 ).withOpacity ( 0.8 )
258+ ? const Color (0xFFCDDC39 ).withValues (alpha : 0.8 )
259259 : const Color (0xFFAFB42B );
260260 } else if (cat.contains ('mead' )) {
261261 return brightness == Brightness .dark
262- ? const Color (0xFFFFEB3B ).withOpacity ( 0.8 )
262+ ? const Color (0xFFFFEB3B ).withValues (alpha : 0.8 )
263263 : const Color (0xFFF9A825 );
264264 } else if (cat.contains ('wine' )) {
265265 return brightness == Brightness .dark
266- ? const Color (0xFF9C27B0 ).withOpacity ( 0.8 )
266+ ? const Color (0xFF9C27B0 ).withValues (alpha : 0.8 )
267267 : const Color (0xFF7B1FA2 );
268268 } else if (cat.contains ('low' ) || cat.contains ('no' )) {
269269 return brightness == Brightness .dark
270- ? colorScheme.primary.withOpacity ( 0.8 )
270+ ? colorScheme.primary.withValues (alpha : 0.8 )
271271 : colorScheme.primary;
272272 }
273273 return colorScheme.outline;
@@ -306,10 +306,10 @@ class _StatCard extends StatelessWidget {
306306 return Container (
307307 padding: const EdgeInsets .all (12 ),
308308 decoration: BoxDecoration (
309- color: theme.colorScheme.surface.withOpacity ( 0.5 ),
309+ color: theme.colorScheme.surface.withValues (alpha : 0.5 ),
310310 borderRadius: BorderRadius .circular (12 ),
311311 border: Border .all (
312- color: theme.colorScheme.outline.withOpacity ( 0.2 ),
312+ color: theme.colorScheme.outline.withValues (alpha : 0.2 ),
313313 ),
314314 ),
315315 child: Column (
0 commit comments