diff --git a/lib/widgets/glass_app_bar.dart b/lib/widgets/glass_app_bar.dart index 4440c37..e873a3b 100644 --- a/lib/widgets/glass_app_bar.dart +++ b/lib/widgets/glass_app_bar.dart @@ -41,7 +41,7 @@ class GlassAppBar extends StatelessWidget implements PreferredSizeWidget { color: glassColor, border: Border( bottom: BorderSide( - color: Colors.white.withOpacity(borderOpacity), + color: Colors.white.withValues(alpha: borderOpacity), width: 1, ), ), @@ -78,7 +78,7 @@ class GlassAppBar extends StatelessWidget implements PreferredSizeWidget { fontWeight: FontWeight.w600, letterSpacing: 0.4, ), - fillColor: Colors.white.withOpacity(0.95), + fillColor: Colors.white.withValues(alpha: 0.95), strokeColor: Colors.black, strokeWidth: 1.5, ), @@ -116,7 +116,8 @@ class GlassIconButton extends StatelessWidget { @override Widget build(BuildContext context) { final iconColor = - color ?? Theme.of(context).colorScheme.onSurface.withOpacity(0.85); + color ?? + Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.85); return Tooltip( message: tooltip ?? '', child: InkWell( @@ -129,9 +130,9 @@ class GlassIconButton extends StatelessWidget { child: Container( padding: const EdgeInsets.all(10), decoration: BoxDecoration( - color: Colors.white.withOpacity(0.12), + color: Colors.white.withValues(alpha: 0.12), shape: BoxShape.circle, - border: Border.all(color: Colors.white.withOpacity(0.25)), + border: Border.all(color: Colors.white.withValues(alpha: 0.25)), ), child: Icon(icon, color: iconColor, size: 22), ), diff --git a/lib/widgets/person_weight_card.dart b/lib/widgets/person_weight_card.dart index 2365c7e..6ee250e 100644 --- a/lib/widgets/person_weight_card.dart +++ b/lib/widgets/person_weight_card.dart @@ -84,7 +84,7 @@ class PersonWeightCard extends StatelessWidget { bottom: 12, ), itemCount: history.length, - separatorBuilder: (_, __) => Divider( + separatorBuilder: (_, _) => Divider( color: Colors.white.withValues(alpha: 0.08), height: 1, ),