详情里的对话框切换动画ok

This commit is contained in:
zhutao
2025-09-04 23:24:48 +08:00
parent 0231dcfe1a
commit 70aa3e6ab6
8 changed files with 368 additions and 41 deletions

View File

@@ -1,6 +1,15 @@
import 'package:flutter/cupertino.dart';
import 'package:plan/api/dto/plan_detail_dto.dart';
import 'package:plan/api/endpoints/plan_api.dart';
class PlanDetailStore extends ChangeNotifier {
///构造函数
PlanDetailStore({
this.planContent = "",
this.planId = "",
bool showRoleTalk = true,
}) : _showRoleTalk = showRoleTalk;
///角色话语是否显示
bool _showRoleTalk = true;
@@ -10,4 +19,19 @@ class PlanDetailStore extends ChangeNotifier {
_showRoleTalk = value;
notifyListeners();
}
///计划的内容,只有新增时才会有
String planContent = "";
///计划id
String planId = "";
///计划详情
PlanDetailDto planDetail = PlanDetailDto();
///创建计划
void createPlan() async {
var id = await initPlanApi(planContent, 1);
planId = id.toString();
}
}