mirror of
https://github.com/hackku21/loc-chain-app.git
synced 2026-03-02 03:40:13 +00:00
working on bluetooth
This commit is contained in:
@@ -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")));
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user