详情里的对话框切换动画ok
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user