chore: fix deprecated APIs and unused imports

This commit is contained in:
fiatcode 2026-04-30 16:26:56 +07:00
parent 6cbb7a2070
commit 93d5534755
No known key found for this signature in database
5 changed files with 23 additions and 22 deletions

View file

@ -188,7 +188,7 @@ class _MainScreenState extends State<MainScreen> with TickerProviderStateMixin {
boxShadow: _isTracking
? [
BoxShadow(
color: const Color(0xFF00e676).withOpacity(0.6),
color: const Color(0xFF00e676).withValues(alpha: 0.6),
blurRadius: 8,
spreadRadius: 2,
),
@ -248,7 +248,7 @@ class _MainScreenState extends State<MainScreen> with TickerProviderStateMixin {
fontSize: 11,
fontWeight: FontWeight.w700,
letterSpacing: 2,
color: const Color(0xFF00bcd4).withOpacity(0.8),
color: const Color(0xFF00bcd4).withValues(alpha: 0.8),
),
),
],
@ -330,7 +330,7 @@ class _MainScreenState extends State<MainScreen> with TickerProviderStateMixin {
BoxShadow(
color: const Color(
0xFF00e676,
).withOpacity(0.15 * _pulseAnimation.value),
).withValues(alpha: 0.15 * _pulseAnimation.value),
blurRadius: 12,
spreadRadius: 0,
),