Skip to content

Commit 6b1870e

Browse files
committed
chore: Downgrade to flutter 3.24.5 for rendering issues.
1 parent 78e3f2e commit 6b1870e

21 files changed

+5079
-2740
lines changed

example/lib/theme.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class LiveKitTheme {
4444
// backgroundColor: WidgetStateProperty.all<Color>(accentColor),
4545
backgroundColor: WidgetStateProperty.resolveWith((states) {
4646
if (states.contains(WidgetState.disabled)) {
47-
return accentColor.withValues(alpha: 0.5);
47+
return accentColor.withOpacity(0.5);
4848
}
4949
return accentColor;
5050
}),
@@ -59,16 +59,16 @@ class LiveKitTheme {
5959
if (states.contains(WidgetState.selected)) {
6060
return accentColor;
6161
}
62-
return accentColor.withValues(alpha: 0.3);
62+
return accentColor.withOpacity(0.3);
6363
}),
6464
thumbColor: WidgetStateProperty.resolveWith((states) {
6565
if (states.contains(WidgetState.selected)) {
6666
return Colors.white;
6767
}
68-
return Colors.white.withValues(alpha: 0.3);
68+
return Colors.white.withOpacity(0.3);
6969
}),
7070
),
71-
dialogTheme: DialogThemeData(
71+
dialogTheme: DialogTheme(
7272
backgroundColor: cardColor,
7373
shape: RoundedRectangleBorder(
7474
borderRadius: BorderRadius.circular(8),
@@ -87,7 +87,7 @@ class LiveKitTheme {
8787
color: LKColors.lkBlue,
8888
),
8989
hintStyle: TextStyle(
90-
color: LKColors.lkBlue.withValues(alpha: 5),
90+
color: LKColors.lkBlue.withOpacity(5),
9191
),
9292
enabledBorder: InputBorder.none,
9393
focusedBorder: InputBorder.none,

example/lib/widgets/participant.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class RemoteTrackPublicationMenuWidget extends StatelessWidget {
277277

278278
@override
279279
Widget build(BuildContext context) => Material(
280-
color: Colors.black.withValues(alpha: 0.3),
280+
color: Colors.black.withOpacity(0.3),
281281
child: PopupMenuButton<Function>(
282282
tooltip: 'Subscribe menu',
283283
icon: Icon(icon,
@@ -315,7 +315,7 @@ class RemoteTrackFPSMenuWidget extends StatelessWidget {
315315

316316
@override
317317
Widget build(BuildContext context) => Material(
318-
color: Colors.black.withValues(alpha: 0.3),
318+
color: Colors.black.withOpacity(0.3),
319319
child: PopupMenuButton<Function>(
320320
tooltip: 'Preferred FPS',
321321
icon: Icon(icon, color: Colors.white),
@@ -349,7 +349,7 @@ class RemoteTrackQualityMenuWidget extends StatelessWidget {
349349

350350
@override
351351
Widget build(BuildContext context) => Material(
352-
color: Colors.black.withValues(alpha: 0.3),
352+
color: Colors.black.withOpacity(0.3),
353353
child: PopupMenuButton<Function>(
354354
tooltip: 'Preferred Quality',
355355
icon: Icon(icon, color: Colors.white),

example/lib/widgets/participant_info.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ParticipantInfoWidget extends StatelessWidget {
4343

4444
@override
4545
Widget build(BuildContext context) => Container(
46-
color: Colors.black.withValues(alpha: 0.3),
46+
color: Colors.black.withOpacity(0.3),
4747
padding: const EdgeInsets.symmetric(
4848
vertical: 7,
4949
horizontal: 10,

example/lib/widgets/participant_stats.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class _ParticipantStatsWidgetState extends State<ParticipantStatsWidget> {
150150
@override
151151
Widget build(BuildContext context) {
152152
return Container(
153-
color: Colors.black.withValues(alpha: 0.3),
153+
color: Colors.black.withOpacity(0.3),
154154
padding: const EdgeInsets.symmetric(
155155
vertical: 8,
156156
horizontal: 8,

example/lib/widgets/text_field.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class LKTextField extends StatelessWidget {
3131
decoration: BoxDecoration(
3232
border: Border.all(
3333
width: 1,
34-
color: Colors.white.withValues(alpha: .3),
34+
color: Colors.white.withOpacity(.3),
3535
),
3636
borderRadius: BorderRadius.circular(8),
3737
),

0 commit comments

Comments
 (0)