commit new prop

This commit is contained in:
2026-02-24 21:07:35 +01:00
parent 63d1be6d9c
commit 487379ed0a
2 changed files with 7 additions and 6 deletions

View File

@@ -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),
),

View File

@@ -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,
),