File tree Expand file tree Collapse file tree
src/lib/features/auth/presentation/view Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,18 @@ class _LoginViewState extends State<LoginView> {
2525 submitText: 'Đăng nhập' ,
2626 isLoading: _vm.isLoading,
2727 showSocial: true ,
28+ onGoogleTap: () async {
29+ final error = await _vm.loginWithGoogle ();
30+ if (error != null && context.mounted) {
31+ ScaffoldMessenger .of (context).showSnackBar (SnackBar (content: Text (error), backgroundColor: AppColors .error));
32+ }
33+ },
34+ onFacebookTap: () async {
35+ final error = await _vm.loginWithFacebook ();
36+ if (error != null && context.mounted) {
37+ ScaffoldMessenger .of (context).showSnackBar (SnackBar (content: Text (error), backgroundColor: AppColors .error));
38+ }
39+ },
2840 onSubmit: () async {
2941 FocusScope .of (context).unfocus ();
3042 final errorMessage = await _vm.login ();
You can’t perform that action at this time.
0 commit comments