From 2315d030440c8f7a1b78f465cda5246fd712ac7b Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Thu, 20 May 2021 20:00:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E5=AE=8C=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspection_manage/inspection_point_input_page.dart | 4 +++- .../inspection_manage/inspection_point_submit_page.dart | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ui/manage_pages/inspection_manage/inspection_point_input_page.dart b/lib/ui/manage_pages/inspection_manage/inspection_point_input_page.dart index 564f8d6..cefef21 100644 --- a/lib/ui/manage_pages/inspection_manage/inspection_point_input_page.dart +++ b/lib/ui/manage_pages/inspection_manage/inspection_point_input_page.dart @@ -2,6 +2,7 @@ import 'dart:io'; // Flutter imports: +import 'package:aku_community_manager/ui/manage_pages/inspection_manage/inspection_point_submit_page.dart'; import 'package:flutter/material.dart'; // Package imports: @@ -99,7 +100,8 @@ class _InspectionPointInputPageState extends State { await ManageFunc.getSubmitPoint(_submitModel); if (baseModel.status) { BotToast.showText(text: baseModel.message); - Get.back(); + Get.to(() => InspectionPointSubmitPage()); + } else { BotToast.showText(text: baseModel.message); } diff --git a/lib/ui/manage_pages/inspection_manage/inspection_point_submit_page.dart b/lib/ui/manage_pages/inspection_manage/inspection_point_submit_page.dart index 2269524..b40ceb6 100644 --- a/lib/ui/manage_pages/inspection_manage/inspection_point_submit_page.dart +++ b/lib/ui/manage_pages/inspection_manage/inspection_point_submit_page.dart @@ -52,6 +52,7 @@ class _InspectionPointSubmitPageState extends State { padding: EdgeInsets.symmetric(vertical: 22.w, horizontal: 76.w), onPressed: () { Get.back(); + Get.back(); }, ), ],