merge-update-with-lab-changes
haroon amjad 4 years ago
parent bc97cfa95b
commit 9464d543fc

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

Loading…
Cancel
Save