From 0f56977339e332b312909fb4036ee96715a2bb5d Mon Sep 17 00:00:00 2001 From: laiiihz Date: Mon, 22 Mar 2021 15:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99=E7=94=9F=E6=88=90=E8=AE=BF?= =?UTF-8?q?=E5=AE=A2=E9=80=9A=E8=A1=8C=E8=AF=81=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visitor_access_page.dart | 33 ++++++++----------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/lib/pages/visitor_access_page/visitor_access_page.dart b/lib/pages/visitor_access_page/visitor_access_page.dart index bd7b8fcd..c966d23f 100644 --- a/lib/pages/visitor_access_page/visitor_access_page.dart +++ b/lib/pages/visitor_access_page/visitor_access_page.dart @@ -238,33 +238,28 @@ class _VisitorAccessPageState extends State { int type, String tel, ) { - return InkWell( - onTap: () async { + return MaterialButton( + onPressed: () async { VoidCallback cancel = BotToast.showLoading(); await ManagerFunc.insertVisitorInfo(id, type, _userName.text, _selectSex, tel, _userCarNum.text, dateTime); cancel(); Get.off(VisitorRecordPage()); }, - child: Container( - alignment: Alignment.center, - height: 96.w, - width: 686.w, - padding: EdgeInsets.symmetric( - vertical: 26.w, - ), - decoration: BoxDecoration( - color: Color(0xffffc40c), - borderRadius: BorderRadius.all(Radius.circular(48))), - child: Text( - '生成通行证', - style: TextStyle( - fontWeight: FontWeight.w600, - fontSize: 32.sp, - color: Color(0xff333333)), + minWidth: double.infinity, + height: 96.w, + shape: StadiumBorder(), + color: Color(0xffffc40c), + elevation: 0, + child: Text( + '生成通行证', + style: TextStyle( + fontWeight: FontWeight.w600, + fontSize: 32.sp, + color: Color(0xff333333), ), ), - ); + ).pSymmetric(h: 26.w); } Widget _tips() {