commit new prop
This commit is contained in:
@@ -41,7 +41,7 @@ class GlassAppBar extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
color: glassColor,
|
color: glassColor,
|
||||||
border: Border(
|
border: Border(
|
||||||
bottom: BorderSide(
|
bottom: BorderSide(
|
||||||
color: Colors.white.withOpacity(borderOpacity),
|
color: Colors.white.withValues(alpha: borderOpacity),
|
||||||
width: 1,
|
width: 1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -78,7 +78,7 @@ class GlassAppBar extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
letterSpacing: 0.4,
|
letterSpacing: 0.4,
|
||||||
),
|
),
|
||||||
fillColor: Colors.white.withOpacity(0.95),
|
fillColor: Colors.white.withValues(alpha: 0.95),
|
||||||
strokeColor: Colors.black,
|
strokeColor: Colors.black,
|
||||||
strokeWidth: 1.5,
|
strokeWidth: 1.5,
|
||||||
),
|
),
|
||||||
@@ -116,7 +116,8 @@ class GlassIconButton extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final iconColor =
|
final iconColor =
|
||||||
color ?? Theme.of(context).colorScheme.onSurface.withOpacity(0.85);
|
color ??
|
||||||
|
Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.85);
|
||||||
return Tooltip(
|
return Tooltip(
|
||||||
message: tooltip ?? '',
|
message: tooltip ?? '',
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
@@ -129,9 +130,9 @@ class GlassIconButton extends StatelessWidget {
|
|||||||
child: Container(
|
child: Container(
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white.withOpacity(0.12),
|
color: Colors.white.withValues(alpha: 0.12),
|
||||||
shape: BoxShape.circle,
|
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),
|
child: Icon(icon, color: iconColor, size: 22),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class PersonWeightCard extends StatelessWidget {
|
|||||||
bottom: 12,
|
bottom: 12,
|
||||||
),
|
),
|
||||||
itemCount: history.length,
|
itemCount: history.length,
|
||||||
separatorBuilder: (_, __) => Divider(
|
separatorBuilder: (_, _) => Divider(
|
||||||
color: Colors.white.withValues(alpha: 0.08),
|
color: Colors.white.withValues(alpha: 0.08),
|
||||||
height: 1,
|
height: 1,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user