event.dart

Home   »   event.dart

onPressed: () async {
                    var data = await FlutterBarcodeScanner.scanBarcode(
                        "red", "Cancel", true, ScanMode.QR);
                    setState(() {
                      qrData = data.toString();
                      hasdata = true;
                      qrData = encryption
                          .decryptMsg(encryption.getCode(qrData))
                          .toString();
                    });
                  },

Leave a Reply

Your email address will not be published. Required fields are marked *