Skip to content

Commit

Permalink
Test-learning-dart exceptions: catch async exception with await
Browse files Browse the repository at this point in the history
  • Loading branch information
obrasero committed Aug 11, 2021
1 parent f28cc40 commit 78c7e67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ui/signup_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ class _SignUpScreenState extends State<SignUpScreen> {
});
try {
final account_signup= Provider.of<AccountCredentials>(context, listen: false);
account_signup.signup(usernameController.text, passwordController.text,
nodeNameController.text);
await account_signup.signup(usernameController.text, passwordController.text,nodeNameController.text);

final ids = Provider.of<Identities>(context, listen: false);
ids.fetchOwnidenities().then((value) {
Expand Down

0 comments on commit 78c7e67

Please sign in to comment.