diff --git a/lib/pages/visitor_access_page/visitor_access_page.dart b/lib/pages/visitor_access_page/visitor_access_page.dart index a51c8f0c..fd801cec 100644 --- a/lib/pages/visitor_access_page/visitor_access_page.dart +++ b/lib/pages/visitor_access_page/visitor_access_page.dart @@ -325,7 +325,7 @@ class _VisitorAccessPageState extends State { await ManagerFunc.insertVisitorInfo(id, type, _userName.text, _selectSex, tel, _userCarNum.text, dateTime); cancel(); - Get.back(); + Get.off(VisitorRecordPage()); }, child: Container( alignment: Alignment.center, @@ -367,8 +367,8 @@ class _VisitorAccessPageState extends State { return BeeScaffold( title: '访客通行', actions: [ - InkWell( - onTap: () { + MaterialButton( + onPressed: () { VisitorRecordPage().to(); }, child: Container(