为 audioplayers_android 模块单独设置 Java 1.8,其他模块保持 Java 17

This commit is contained in:
Developer
2026-03-31 03:13:47 +08:00
parent 7c09ade2bb
commit d66dc73349
24 changed files with 367 additions and 527 deletions

View File

@@ -58,7 +58,6 @@ class _DistinguishPageState extends State<DistinguishPage> {
try {
return jsonDecode(record) as Map<String, dynamic>;
} catch (e) {
print('解析记录失败: $e');
return <String, dynamic>{};
}
})
@@ -75,7 +74,7 @@ class _DistinguishPageState extends State<DistinguishPage> {
// 加载统计数据
await _loadStatistics();
} catch (e) {
print('加载答题记录失败: $e');
// 加载失败
} finally {
setState(() {
_isLoading = false;
@@ -121,7 +120,7 @@ class _DistinguishPageState extends State<DistinguishPage> {
// 计算诗词水平
_calculatePoetryLevel();
} catch (e) {
print('加载统计数据失败: $e');
// 加载失败
}
}
@@ -462,7 +461,7 @@ $_poetryLevel
context,
).showSnackBar(const SnackBar(content: Text('答题记录已清空')));
} catch (e) {
print('清空记录失败: $e');
// 清空失败
}
}
}