Skip to content
Merged
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
6 changes: 3 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();

if (lkPlatformIsDesktop()) {
FlutterWindowClose.setWindowShouldCloseHandler(() async {
await FlutterWindowClose.setWindowShouldCloseHandler(() async {
await onWindowShouldClose?.call();
return true;
});
Expand All @@ -30,8 +30,8 @@ void main() async {
class LiveKitExampleApp extends StatelessWidget {
//
const LiveKitExampleApp({
Key? key,
}) : super(key: key);
super.key,
});

@override
Widget build(BuildContext context) => MaterialApp(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/pages/connect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import '../exts.dart';
class ConnectPage extends StatefulWidget {
//
const ConnectPage({
Key? key,
}) : super(key: key);
super.key,
});

@override
State<StatefulWidget> createState() => _ConnectPageState();
Expand Down
4 changes: 2 additions & 2 deletions example/lib/pages/prejoin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class JoinArgs {
class PreJoinPage extends StatefulWidget {
const PreJoinPage({
required this.args,
Key? key,
}) : super(key: key);
super.key,
});
final JoinArgs args;
@override
State<StatefulWidget> createState() => _PreJoinPageState();
Expand Down
4 changes: 2 additions & 2 deletions example/lib/pages/room.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class RoomPage extends StatefulWidget {
const RoomPage(
this.room,
this.listener, {
Key? key,
}) : super(key: key);
super.key,
});

@override
State<StatefulWidget> createState() => _RoomPageState();
Expand Down
10 changes: 5 additions & 5 deletions example/lib/widgets/controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class ControlsWidget extends StatefulWidget {
const ControlsWidget(
this.room,
this.participant, {
Key? key,
}) : super(key: key);
super.key,
});

@override
State<StatefulWidget> createState() => _ControlsWidgetState();
Expand Down Expand Up @@ -340,7 +340,7 @@ class _ControlsWidgetState extends State<ControlsWidget> {
),
onTap: () => _selectAudioInput(device),
);
}).toList()
})
];
},
)
Expand Down Expand Up @@ -384,7 +384,7 @@ class _ControlsWidgetState extends State<ControlsWidget> {
),
onTap: () => _selectAudioOutput(device),
);
}).toList()
})
];
},
),
Expand Down Expand Up @@ -433,7 +433,7 @@ class _ControlsWidgetState extends State<ControlsWidget> {
),
onTap: () => _selectVideoInput(device),
);
}).toList()
})
];
},
)
Expand Down
2 changes: 1 addition & 1 deletion example/lib/widgets/no_video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:livekit_example/theme.dart';

class NoVideoWidget extends StatelessWidget {
//
const NoVideoWidget({Key? key}) : super(key: key);
const NoVideoWidget({super.key});

@override
Widget build(BuildContext context) => Container(
Expand Down
24 changes: 12 additions & 12 deletions example/lib/widgets/participant.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ abstract class ParticipantWidget extends StatefulWidget {

const ParticipantWidget({
this.quality = VideoQuality.MEDIUM,
Key? key,
}) : super(key: key);
super.key,
});
}

class LocalParticipantWidget extends ParticipantWidget {
Expand All @@ -56,8 +56,8 @@ class LocalParticipantWidget extends ParticipantWidget {
this.videoTrack,
this.isScreenShare,
this.showStatsLayer, {
Key? key,
}) : super(key: key);
super.key,
});

@override
State<StatefulWidget> createState() => _LocalParticipantWidgetState();
Expand All @@ -78,8 +78,8 @@ class RemoteParticipantWidget extends ParticipantWidget {
this.videoTrack,
this.isScreenShare,
this.showStatsLayer, {
Key? key,
}) : super(key: key);
super.key,
});

@override
State<StatefulWidget> createState() => _RemoteParticipantWidgetState();
Expand Down Expand Up @@ -249,8 +249,8 @@ class RemoteTrackPublicationMenuWidget extends StatelessWidget {
const RemoteTrackPublicationMenuWidget({
required this.pub,
required this.icon,
Key? key,
}) : super(key: key);
super.key,
});

@override
Widget build(BuildContext context) => Material(
Expand Down Expand Up @@ -287,8 +287,8 @@ class RemoteTrackFPSMenuWidget extends StatelessWidget {
const RemoteTrackFPSMenuWidget({
required this.pub,
required this.icon,
Key? key,
}) : super(key: key);
super.key,
});

@override
Widget build(BuildContext context) => Material(
Expand Down Expand Up @@ -321,8 +321,8 @@ class RemoteTrackQualityMenuWidget extends StatelessWidget {
const RemoteTrackQualityMenuWidget({
required this.pub,
required this.icon,
Key? key,
}) : super(key: key);
super.key,
});

@override
Widget build(BuildContext context) => Material(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/widgets/participant_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class ParticipantInfoWidget extends StatelessWidget {
this.connectionQuality = ConnectionQuality.unknown,
this.isScreenShare = false,
this.enabledE2EE = false,
Key? key,
}) : super(key: key);
super.key,
});

@override
Widget build(BuildContext context) => Container(
Expand Down
3 changes: 1 addition & 2 deletions example/lib/widgets/participant_stats.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ enum StatsType {
}

class ParticipantStatsWidget extends StatefulWidget {
const ParticipantStatsWidget({Key? key, required this.participant})
: super(key: key);
const ParticipantStatsWidget({super.key, required this.participant});
final Participant participant;
@override
State<StatefulWidget> createState() => _ParticipantStatsWidgetState();
Expand Down
4 changes: 2 additions & 2 deletions example/lib/widgets/text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class LKTextField extends StatelessWidget {
const LKTextField({
required this.label,
this.ctrl,
Key? key,
}) : super(key: key);
super.key,
});

@override
Widget build(BuildContext context) => Column(
Expand Down
2 changes: 1 addition & 1 deletion ios/livekit_client.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Pod::Spec.new do |s|
s.static_framework = true

s.dependency 'Flutter'
s.dependency 'WebRTC-SDK', '114.5735.09'
s.dependency 'WebRTC-SDK', '114.5735.10'
end
2 changes: 1 addition & 1 deletion macos/livekit_client.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Pod::Spec.new do |s|
s.static_framework = true

s.dependency 'FlutterMacOS'
s.dependency 'WebRTC-SDK', '114.5735.09'
s.dependency 'WebRTC-SDK', '114.5735.10'
end