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

@ -189,7 +189,9 @@ class _StatusScreenState extends State<StatusScreen> {
style: TextStyle(
fontFamily: 'monospace',
fontSize: 11,
color: const Color(0xFF424242).withOpacity(0.6),
color: const Color(
0xFF424242,
).withValues(alpha: 0.6),
),
),
],
@ -217,12 +219,12 @@ class _StatusScreenState extends State<StatusScreen> {
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
decoration: BoxDecoration(
color: isSelected
? const Color(0xFF00bcd4).withOpacity(0.15)
? const Color(0xFF00bcd4).withValues(alpha: 0.15)
: Colors.transparent,
borderRadius: BorderRadius.circular(3),
border: Border.all(
color: isSelected
? const Color(0xFF00bcd4).withOpacity(0.5)
? const Color(0xFF00bcd4).withValues(alpha: 0.5)
: const Color(0xFF2a2a2a),
width: 1,
),
@ -276,7 +278,7 @@ class _StatusScreenState extends State<StatusScreen> {
width: 16,
height: 16,
decoration: BoxDecoration(
color: color.withOpacity(0.15),
color: color.withValues(alpha: 0.15),
borderRadius: BorderRadius.circular(3),
),
child: Icon(icon, size: 10, color: color),
@ -285,7 +287,7 @@ class _StatusScreenState extends State<StatusScreen> {
Container(
padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 1),
decoration: BoxDecoration(
color: color.withOpacity(0.1),
color: color.withValues(alpha: 0.1),
borderRadius: BorderRadius.circular(2),
),
child: Text(