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

@ -324,7 +324,7 @@ class _PermissionScreenState extends State<PermissionScreen> {
borderRadius: BorderRadius.circular(4),
border: Border.all(
color: granted
? const Color(0xFF00e676).withOpacity(0.3)
? const Color(0xFF00e676).withValues(alpha: 0.3)
: const Color(0xFF2a2a2a),
width: 1,
),
@ -336,7 +336,7 @@ class _PermissionScreenState extends State<PermissionScreen> {
height: 36,
decoration: BoxDecoration(
color: granted
? const Color(0xFF00e676).withOpacity(0.15)
? const Color(0xFF00e676).withValues(alpha: 0.15)
: const Color(0xFF2a2a2a),
borderRadius: BorderRadius.circular(4),
),
@ -382,10 +382,10 @@ class _PermissionScreenState extends State<PermissionScreen> {
vertical: 4,
),
decoration: BoxDecoration(
color: const Color(0xFF00e676).withOpacity(0.15),
color: const Color(0xFF00e676).withValues(alpha: 0.15),
borderRadius: BorderRadius.circular(3),
border: Border.all(
color: const Color(0xFF00e676).withOpacity(0.4),
color: const Color(0xFF00e676).withValues(alpha: 0.4),
width: 1,
),
),
@ -407,10 +407,10 @@ class _PermissionScreenState extends State<PermissionScreen> {
vertical: 4,
),
decoration: BoxDecoration(
color: const Color(0xFF00bcd4).withOpacity(0.1),
color: const Color(0xFF00bcd4).withValues(alpha: 0.1),
borderRadius: BorderRadius.circular(3),
border: Border.all(
color: const Color(0xFF00bcd4).withOpacity(0.4),
color: const Color(0xFF00bcd4).withValues(alpha: 0.4),
width: 1,
),
),
@ -491,7 +491,7 @@ class _PermissionScreenState extends State<PermissionScreen> {
Widget _buildContinueButton() {
return Material(
color: _allGranted
? const Color(0xFF00e676).withOpacity(0.15)
? const Color(0xFF00e676).withValues(alpha: 0.15)
: const Color(0xFF2a2a2a),
borderRadius: BorderRadius.circular(4),
child: InkWell(
@ -504,7 +504,7 @@ class _PermissionScreenState extends State<PermissionScreen> {
borderRadius: BorderRadius.circular(4),
border: Border.all(
color: _allGranted
? const Color(0xFF00e676).withOpacity(0.4)
? const Color(0xFF00e676).withValues(alpha: 0.4)
: const Color(0xFF2a2a2a),
width: 1,
),