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