chore: fix deprecated APIs and unused imports
This commit is contained in:
parent
6cbb7a2070
commit
93d5534755
5 changed files with 23 additions and 22 deletions
|
|
@ -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,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue