重构
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../constants/app_constants.dart';
|
||||
import '../../../controllers/shared_preferences_storage_controller.dart';
|
||||
import '../guide/tongji.dart';
|
||||
import 'level-jilu.dart';
|
||||
import 'flow-anim.dart';
|
||||
import 'distinguish.dart';
|
||||
@@ -231,6 +232,13 @@ class _PoetryLevelPageState extends State<PoetryLevelPage>
|
||||
|
||||
if (!mounted) return;
|
||||
|
||||
// 记录今日答题
|
||||
try {
|
||||
await StatisticsManager().recordTodayQuestion();
|
||||
} catch (e) {
|
||||
// 忽略错误
|
||||
}
|
||||
|
||||
setState(() {
|
||||
if (result.success) {
|
||||
_isAnswerCorrect = result.isCorrect;
|
||||
|
||||
Reference in New Issue
Block a user