重写生成访客通行证按钮

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, shape: StadiumBorder(),
width: 686.w, color: Color(0xffffc40c),
padding: EdgeInsets.symmetric( elevation: 0,
vertical: 26.w, child: Text(
), '生成通行证',
decoration: BoxDecoration( style: TextStyle(
color: Color(0xffffc40c), fontWeight: FontWeight.w600,
borderRadius: BorderRadius.all(Radius.circular(48))), fontSize: 32.sp,
child: Text( color: Color(0xff333333),
'生成通行证',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 32.sp,
color: Color(0xff333333)),
), ),
), ),
); ).pSymmetric(h: 26.w);
} }
Widget _tips() { Widget _tips() {

Loading…
Cancel
Save