fix: Remove uncompatible dependencies connectivity_plus and wakelock

This commit is contained in:
Krille 2023-10-08 19:38:57 +02:00
commit 35367389f0
No known key found for this signature in database
8 changed files with 8 additions and 85 deletions

View file

@ -28,7 +28,7 @@ import 'package:flutter_webrtc/flutter_webrtc.dart';
import 'package:just_audio/just_audio.dart';
import 'package:matrix/matrix.dart';
import 'package:vibration/vibration.dart';
import 'package:wakelock/wakelock.dart';
import 'package:wakelock_plus/wakelock_plus.dart';
import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_locals.dart';
import 'package:fluffychat/utils/platform_infos.dart';
@ -223,7 +223,7 @@ class MyCallingPage extends State<Calling> {
if (call.type == CallType.kVideo) {
try {
// Enable wakelock (keep screen on)
unawaited(Wakelock.enable());
unawaited(WakelockPlus.enable());
} catch (_) {}
}
}
@ -235,7 +235,7 @@ class MyCallingPage extends State<Calling> {
);
if (call.type == CallType.kVideo) {
try {
unawaited(Wakelock.disable());
unawaited(WakelockPlus.disable());
} catch (_) {}
}
}