working on bluetooth

This commit is contained in:
2021-04-10 15:19:32 -05:00
parent 5b8922e68a
commit 27bb819cc9
3 changed files with 41 additions and 4 deletions

View File

@@ -31,10 +31,10 @@ class _BluetoothPageState extends State<BluetoothPage> {
child: Text("GetID"),
onPressed: () async {
final prefs = await SharedPreferences.getInstance();
final id = prefs.getString('id');
final userName = prefs.getString('userName');
ScaffoldMessenger.of(context)
.showSnackBar(SnackBar(content: Text("Id is $id")));
.showSnackBar(SnackBar(content: Text("Id is $userName")));
},
),
),