Skip to content

Commit

Permalink
🔊 Add toast when login method failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 19, 2020
1 parent 0633fa9 commit 7c7bd0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pages/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ class LoginPageState extends State<LoginPage> with SingleTickerProviderStateMixi
if (mounted) setState(() {});
}
}).catchError((e) {
debugPrint('Failed when login: $e');
showToast('登录失败');
_login = false;
if (mounted) setState(() {});
});
Expand Down

0 comments on commit 7c7bd0a

Please sign in to comment.