fix: Remove uncompatible dependencies connectivity_plus and wakelock
This commit is contained in:
parent
bcbe82523c
commit
35367389f0
8 changed files with 8 additions and 85 deletions
|
|
@ -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 (_) {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue