重写生成访客通行证按钮

hmxc
小赖 4 years ago
parent 9bd7696aa0
commit 0f56977339

@ -238,33 +238,28 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
int type, int type,
String tel, String tel,
) { ) {
return InkWell( return MaterialButton(
onTap: () async { onPressed: () async {
VoidCallback cancel = BotToast.showLoading(); VoidCallback cancel = BotToast.showLoading();
await ManagerFunc.insertVisitorInfo(id, type, _userName.text, await ManagerFunc.insertVisitorInfo(id, type, _userName.text,
_selectSex, tel, _userCarNum.text, dateTime); _selectSex, tel, _userCarNum.text, dateTime);
cancel(); cancel();
Get.off(VisitorRecordPage()); Get.off(VisitorRecordPage());
}, },
child: Container( minWidth: double.infinity,
alignment: Alignment.center,
height: 96.w, height: 96.w,
width: 686.w, shape: StadiumBorder(),
padding: EdgeInsets.symmetric(
vertical: 26.w,
),
decoration: BoxDecoration(
color: Color(0xffffc40c), color: Color(0xffffc40c),
borderRadius: BorderRadius.all(Radius.circular(48))), elevation: 0,
child: Text( child: Text(
'生成通行证', '生成通行证',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 32.sp, fontSize: 32.sp,
color: Color(0xff333333)), color: Color(0xff333333),
), ),
), ),
); ).pSymmetric(h: 26.w);
} }
Widget _tips() { Widget _tips() {

Loading…
Cancel
Save