-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat/#19] 스플래시 스크린 및 로고 & 자동로그인 #35
Conversation
2553614
to
081d8c3
Compare
class SplashViewModel extends ChangeNotifier { | ||
final UserService userService = GetIt.instance<UserService>(); | ||
|
||
Future<bool> autoLogin() async { | ||
try { | ||
final response = await userService.getUserInfo(); | ||
if (response.email!.isNotEmpty) { | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
} catch (e) { | ||
log('Auto login failed: $e'); | ||
return false; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 보시면 됩니다
lib/features/splash_screen.dart
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 보시면 됩니다
2306156
to
dd856e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! 수고하셨어요! 로티만 띄울 수 있는 방법이 있는지 확인해 주시면 감사하겠습니다!
Issue
Description
회원 정보 조회 api
에서 이메일 값이 null이 아니면 홈으로 아니면 로그인으로Screenshot
default.webm