|
|
|
|
@ -73,8 +73,7 @@ class _QRCodeState extends State<QRCode> {
|
|
|
|
|
height: MediaQuery.of(context).size.width / 3,
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
_supportsNFC
|
|
|
|
|
? Expanded(
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
@ -92,20 +91,20 @@ class _QRCodeState extends State<QRCode> {
|
|
|
|
|
child: Image.asset("assets/images/nfc/ic_nfc.png"),
|
|
|
|
|
),
|
|
|
|
|
onTap: () {
|
|
|
|
|
locator<ProjectViewModel>().analytics.todoList.to_do_list_nfc(widget.appointment);
|
|
|
|
|
showNfcReader(context, onNcfScan: (String nfcId) {
|
|
|
|
|
Future.delayed(const Duration(milliseconds: 100), () {
|
|
|
|
|
sendNfcCheckInRequest(nfcId);
|
|
|
|
|
locator<ProjectViewModel>().analytics.todoList.to_do_list_nfc(widget.appointment);
|
|
|
|
|
});
|
|
|
|
|
}, onCancel: (){
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
locator<ProjectViewModel>().analytics.todoList.to_do_list_nfc_cancel(widget.appointment);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Container(),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: Container(
|
|
|
|
|
|