web端修复

This commit is contained in:
Developer
2026-04-01 01:34:22 +08:00
parent ab9961853d
commit 6517a78c7e
12 changed files with 2390 additions and 46 deletions

View File

@@ -0,0 +1,21 @@
import 'package:wakelock_plus/wakelock_plus.dart';
import 'wakelock_service.dart';
class WakelockServiceIO implements WakelockService {
@override
Future<void> enable() async {
await WakelockPlus.enable();
}
@override
Future<void> disable() async {
await WakelockPlus.disable();
}
@override
Future<bool> isEnabled() async {
return await WakelockPlus.enabled;
}
}
WakelockService getWakelockServiceImpl() => WakelockServiceIO();