深色模式、首页设置页面和功能优化

This commit is contained in:
Developer
2026-04-02 07:06:55 +08:00
parent f0a62ed68b
commit 954d173329
88 changed files with 12157 additions and 7578 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();