1.全部完成后,修改对话内容

This commit is contained in:
zhutao
2025-09-24 11:34:55 +08:00
parent ca376d9393
commit 70479542a5
3 changed files with 76 additions and 67 deletions

View File

@@ -17,8 +17,7 @@ class _DoneStampState extends State<DoneStamp> {
return Consumer<PlanDetailStore>(
builder: (context, store, _) {
//是否全部完成
bool allDone = store.planDetail.stepsList.every((item) => item.stepStatus == 2);
if (!allDone || store.planDetail.stepsList.isEmpty) {
if (!store.isAllDone() ) {
return Container();
}
return Align(