refactor: Enable more strict lints
This commit is contained in:
parent
f797bce8d0
commit
28af7bb0c7
65 changed files with 170 additions and 146 deletions
|
|
@ -171,7 +171,7 @@ class MyCallingPage extends State<Calling> {
|
|||
EdgeInsetsGeometry? _localVideoMargin;
|
||||
CallState? _state;
|
||||
|
||||
void _playCallSound() async {
|
||||
Future<void> _playCallSound() async {
|
||||
const path = 'assets/sounds/call.ogg';
|
||||
if (kIsWeb || PlatformInfos.isMobile || PlatformInfos.isMacOS) {
|
||||
final player = AudioPlayer();
|
||||
|
|
@ -245,7 +245,7 @@ class MyCallingPage extends State<Calling> {
|
|||
}
|
||||
|
||||
void _handleCallState(CallState state) {
|
||||
Logs().v('CallingPage::handleCallState: ${state.toString()}');
|
||||
Logs().v('CallingPage::handleCallState: $state');
|
||||
if ({CallState.kConnected, CallState.kEnded}.contains(state)) {
|
||||
HapticFeedback.heavyImpact();
|
||||
}
|
||||
|
|
@ -322,7 +322,7 @@ class MyCallingPage extends State<Calling> {
|
|||
});
|
||||
}
|
||||
|
||||
void _switchCamera() async {
|
||||
Future<void> _switchCamera() async {
|
||||
if (call.localUserMediaStream != null) {
|
||||
await Helper.switchCamera(
|
||||
call.localUserMediaStream!.stream!.getVideoTracks().first,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue