|
|
@ -88,18 +88,20 @@ class _NfcLayoutState extends State<NfcLayout> {
|
|
|
|
"assets/icons/nfc/ic_nfc.png",
|
|
|
|
"assets/icons/nfc/ic_nfc.png",
|
|
|
|
height: MediaQuery.of(context).size.width / 3,
|
|
|
|
height: MediaQuery.of(context).size.width / 3,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
const SizedBox(
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
const Text(
|
|
|
|
"Approach an NFC Tag",
|
|
|
|
"Approach an NFC Tag",
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 18,
|
|
|
|
fontSize: 18,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
const SizedBox(
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Todo: Button to be fixed
|
|
|
|
ButtonTheme(
|
|
|
|
ButtonTheme(
|
|
|
|
minWidth: MediaQuery.of(context).size.width / 1.2,
|
|
|
|
minWidth: MediaQuery.of(context).size.width / 1.2,
|
|
|
|
height: 45.0,
|
|
|
|
height: 45.0,
|
|
|
@ -107,12 +109,11 @@ class _NfcLayoutState extends State<NfcLayout> {
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: RaisedButton(
|
|
|
|
child: TextButton(
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
NfcManager.instance.stopSession();
|
|
|
|
NfcManager.instance.stopSession();
|
|
|
|
Navigator.pop(context);
|
|
|
|
Navigator.pop(context);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
elevation: 0,
|
|
|
|
|
|
|
|
child: Text("CANCEL"),
|
|
|
|
child: Text("CANCEL"),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -159,6 +160,7 @@ class _NfcLayoutState extends State<NfcLayout> {
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
//Todo: Button to be fixed
|
|
|
|
ButtonTheme(
|
|
|
|
ButtonTheme(
|
|
|
|
minWidth: MediaQuery.of(context).size.width / 1.2,
|
|
|
|
minWidth: MediaQuery.of(context).size.width / 1.2,
|
|
|
|
height: 45.0,
|
|
|
|
height: 45.0,
|
|
|
@ -166,14 +168,13 @@ class _NfcLayoutState extends State<NfcLayout> {
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: RaisedButton(
|
|
|
|
child: TextButton(
|
|
|
|
// onPressed: () {
|
|
|
|
// onPressed: () {
|
|
|
|
// _stream?.cancel();
|
|
|
|
// _stream?.cancel();
|
|
|
|
// widget.onNcfScan(nfcId);
|
|
|
|
// widget.onNcfScan(nfcId);
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
onPressed: null,
|
|
|
|
onPressed: null,
|
|
|
|
elevation: 0,
|
|
|
|
|
|
|
|
child: Text("DONE"),
|
|
|
|
child: Text("DONE"),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|