mirror of
https://github.com/hackku21/nearby_connections.git
synced 2026-03-02 03:49:22 +00:00
error fixes
This commit is contained in:
@@ -201,10 +201,13 @@ class _MyBodyState extends State<Body> {
|
||||
),
|
||||
RaisedButton(
|
||||
child: Text("Reject Connection"),
|
||||
onPressed: () {
|
||||
onPressed: () async {
|
||||
Navigator.pop(context);
|
||||
|
||||
Nearby().rejectConnection(id);
|
||||
try {
|
||||
await Nearby().rejectConnection(id);
|
||||
} catch (e) {
|
||||
showSnackbar(e);
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user