Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

catch some missing dynamic variable

Predidit0b0dd9ada254
diff --git a/lib/pages/init_page.dart b/lib/pages/init_page.dart
index 9fdcda4f..50eefaeb 100644
--- a/lib/pages/init_page.dart
+++ b/lib/pages/init_page.dart
@@ -44,7 +44,7 @@ class _InitPageState extends State<InitPage> {
super.initState();
}
- _fvpInit() async {
+ Future<void> _fvpInit() async {
bool hAenable =
await setting.get(SettingBoxKey.hAenable, defaultValue: true);
bool lowMemoryMode =
@@ -98,7 +98,7 @@ class _InitPageState extends State<InitPage> {
}
}
- _webDavInit() async {
+ Future<void> _webDavInit() async {
bool webDavEnable =
await setting.get(SettingBoxKey.webDavEnable, defaultValue: false);
bool webDavEnableFavorite = await setting
@@ -128,7 +128,7 @@ class _InitPageState extends State<InitPage> {
}
}
- _pluginInit() async {
+ Future<void> _pluginInit() async {
String statementsText = '';
try {
await pluginsController.loadPlugins();
@@ -177,14 +177,14 @@ class _InitPageState extends State<InitPage> {
}
}
- _update() {
+ void _update() {
bool autoUpdate = setting.get(SettingBoxKey.autoUpdate, defaultValue: true);
if (autoUpdate) {
Modular.get<MyController>().checkUpdata(type: 'auto');
}
}
- _pluginUpdate() async {
+ Future<void> _pluginUpdate() async {
await pluginsController.queryPluginHTTPList();
int count = 0;
for (var plugin in pluginsController.pluginList) {
diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart
index 9f197872..5e657546 100644
--- a/lib/utils/utils.dart
+++ b/lib/utils/utils.dart
@@ -496,7 +496,7 @@ class Utils {
return false;
}
- static enterWindowsFullscreen() async {
+ static Future<void> enterWindowsFullscreen() async {
if (Platform.isWindows) {
const platform = MethodChannel('com.predidit.kazumi/intent');
try {
@@ -507,7 +507,7 @@ class Utils {
}
}
- static exitWindowsFullscreen() async {
+ static Future<void> exitWindowsFullscreen() async {
if (Platform.isWindows) {
const platform = MethodChannel('com.predidit.kazumi/intent');
try {
@@ -519,7 +519,7 @@ class Utils {
}
// 进入全屏显示
- static enterFullScreen({bool lockOrientation = true}) async {
+ static Future<void> enterFullScreen({bool lockOrientation = true}) async {
if (Platform.isWindows) {
await enterWindowsFullscreen();
return;