-
Notifications
You must be signed in to change notification settings - Fork 1
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
✨ 로그인 버튼 추가 및 폰트 적용 #4
Conversation
} | ||
return name; | ||
} | ||
|
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.
-
getDisplayName
비로그인 유저의 경우(토큰이 있는지 체크) 이름의 중간을 가리도록 로직을 걸어줬어요. -
_maskName
- 비로그인 유저의 이름(name)을 전달 받아 2번째 Character를 기호(*)로 바꿔주는 함수.
snapshot.data ?? '', | ||
); | ||
} | ||
}), |
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.
_getDisplayName 이 유저가 토큰이 있는지 없는지 체크하는 행위가 비동기 작업므로
FutureBuilder를 사용해 future 값에 할당하고 작업이 완료되면 해당 이름을 TuTi.Text에 할당했어요.
color: Colors.white, | ||
fontWeight: FontWeight.w100, | ||
), | ||
), |
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.
로그인 버튼 > 클릭 시 HomeScreen으로 라우팅 하게 만들었어요.
다만, 추후 로그인 안내 메시지 구현 시 > 안내 메시지를 띄우도록 로직을 변경할 예정이에요.
// } | ||
// } | ||
// return null; | ||
// }, |
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.
<비로그인 유저도 트티 화면에 접속하게 만들기 위한 주석 처리>
- 위 로직은 비로그인 유저가 위에서 표시한 화면 이외에 접속하고 있을 경우 HomeScreen으로 redirect 하는 로직이므로 일단은 주석처리로 변경헀어요.
Title
✨ 로그인 버튼 추가 및 폰트 적용
What type of PR is this?
Description
Related Issue number and link
Mobile & Desktop Screenshots/Recordings
default.mp4
Checklist:
To Reviewers