@@ -44,7 +44,7 @@ class LiveKitTheme {
44
44
// backgroundColor: WidgetStateProperty.all<Color>(accentColor),
45
45
backgroundColor: WidgetStateProperty .resolveWith ((states) {
46
46
if (states.contains (WidgetState .disabled)) {
47
- return accentColor.withValues (alpha : 0.5 );
47
+ return accentColor.withOpacity ( 0.5 );
48
48
}
49
49
return accentColor;
50
50
}),
@@ -59,16 +59,16 @@ class LiveKitTheme {
59
59
if (states.contains (WidgetState .selected)) {
60
60
return accentColor;
61
61
}
62
- return accentColor.withValues (alpha : 0.3 );
62
+ return accentColor.withOpacity ( 0.3 );
63
63
}),
64
64
thumbColor: WidgetStateProperty .resolveWith ((states) {
65
65
if (states.contains (WidgetState .selected)) {
66
66
return Colors .white;
67
67
}
68
- return Colors .white.withValues (alpha : 0.3 );
68
+ return Colors .white.withOpacity ( 0.3 );
69
69
}),
70
70
),
71
- dialogTheme: DialogThemeData (
71
+ dialogTheme: DialogTheme (
72
72
backgroundColor: cardColor,
73
73
shape: RoundedRectangleBorder (
74
74
borderRadius: BorderRadius .circular (8 ),
@@ -87,7 +87,7 @@ class LiveKitTheme {
87
87
color: LKColors .lkBlue,
88
88
),
89
89
hintStyle: TextStyle (
90
- color: LKColors .lkBlue.withValues (alpha : 5 ),
90
+ color: LKColors .lkBlue.withOpacity ( 5 ),
91
91
),
92
92
enabledBorder: InputBorder .none,
93
93
focusedBorder: InputBorder .none,
0 commit comments