Skip to content
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

Merged
merged 23 commits into from
Jan 13, 2025

Conversation

HI-JIN2
Copy link
Collaborator

@HI-JIN2 HI-JIN2 commented Oct 7, 2024

Issue

Description

  • 스플래시 스크린 로티 설정 및 로고
  • 자동로그인: 회원 정보 조회 api에서 이메일 값이 null이 아니면 홈으로 아니면 로그인으로
    • 회원 정보 조회가 된다는거는 로컬 스토리지에 토큰이 있음을 내포함
    • 조회가 안될시 (회원가입 자체를 안했건, 로컬 스토리지에 토큰이 없건)에는 로그인 화면으로 가게 설계

Screenshot

default.webm

@HI-JIN2 HI-JIN2 changed the title [Feature/splash] 스플래시 스크린 및 로고 [Feature/#19] 스플래시 스크린 및 로고 Oct 7, 2024
@HI-JIN2 HI-JIN2 self-assigned this Oct 7, 2024
@HI-JIN2 HI-JIN2 added the feature 기능 구현 label Oct 7, 2024
@HI-JIN2 HI-JIN2 linked an issue Oct 8, 2024 that may be closed by this pull request
1 task
@HI-JIN2 HI-JIN2 marked this pull request as ready for review January 8, 2025 09:30
Comment on lines +8 to +24
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;
}
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기 보시면 됩니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기 보시면 됩니다

@HI-JIN2 HI-JIN2 changed the title [Feature/#19] 스플래시 스크린 및 로고 [Feat/#19] 스플래시 스크린 및 로고 & 자동로그인 Jan 8, 2025
Copy link
Contributor

@sunnny619 sunnny619 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!! 수고하셨어요! 로티만 띄울 수 있는 방법이 있는지 확인해 주시면 감사하겠습니다!

@HI-JIN2 HI-JIN2 merged commit 1028093 into main Jan 13, 2025
@HI-JIN2 HI-JIN2 deleted the feature/splash branch January 13, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] splash screen
2 participants