Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions example/lib/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class LiveKitTheme {
// backgroundColor: WidgetStateProperty.all<Color>(accentColor),
backgroundColor: WidgetStateProperty.resolveWith((states) {
if (states.contains(WidgetState.disabled)) {
return accentColor.withValues(alpha: 0.5);
return accentColor.withOpacity(0.5);
}
return accentColor;
}),
Expand All @@ -59,16 +59,16 @@ class LiveKitTheme {
if (states.contains(WidgetState.selected)) {
return accentColor;
}
return accentColor.withValues(alpha: 0.3);
return accentColor.withOpacity(0.3);
}),
thumbColor: WidgetStateProperty.resolveWith((states) {
if (states.contains(WidgetState.selected)) {
return Colors.white;
}
return Colors.white.withValues(alpha: 0.3);
return Colors.white.withOpacity(0.3);
}),
),
dialogTheme: DialogThemeData(
dialogTheme: DialogTheme(
backgroundColor: cardColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
Expand All @@ -87,7 +87,7 @@ class LiveKitTheme {
color: LKColors.lkBlue,
),
hintStyle: TextStyle(
color: LKColors.lkBlue.withValues(alpha: 5),
color: LKColors.lkBlue.withOpacity(5),
),
enabledBorder: InputBorder.none,
focusedBorder: InputBorder.none,
Expand Down
6 changes: 3 additions & 3 deletions example/lib/widgets/participant.dart
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class RemoteTrackPublicationMenuWidget extends StatelessWidget {

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

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

@override
Widget build(BuildContext context) => Material(
color: Colors.black.withValues(alpha: 0.3),
color: Colors.black.withOpacity(0.3),
child: PopupMenuButton<Function>(
tooltip: 'Preferred Quality',
icon: Icon(icon, color: Colors.white),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/participant_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ParticipantInfoWidget extends StatelessWidget {

@override
Widget build(BuildContext context) => Container(
color: Colors.black.withValues(alpha: 0.3),
color: Colors.black.withOpacity(0.3),
padding: const EdgeInsets.symmetric(
vertical: 7,
horizontal: 10,
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/participant_stats.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class _ParticipantStatsWidgetState extends State<ParticipantStatsWidget> {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.black.withValues(alpha: 0.3),
color: Colors.black.withOpacity(0.3),
padding: const EdgeInsets.symmetric(
vertical: 8,
horizontal: 8,
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class LKTextField extends StatelessWidget {
decoration: BoxDecoration(
border: Border.all(
width: 1,
color: Colors.white.withValues(alpha: .3),
color: Colors.white.withOpacity(.3),
),
borderRadius: BorderRadius.circular(8),
),
Expand Down
Loading
Loading