-
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
๐ :: (#657) ์ ์ฒญํ๋ฉด ์๋ฅ์ ์ฒญํ๊ธฐ ํ๊ทธ ์ ๋ฐ์ดํธ ์๋จ #689
The head ref may contain hidden characters: "fix/657-\uC2E0\uCCAD\uD654\uBA74-\uC794\uB958\uC2E0\uCCAD\uD558\uAE30-\uD0DC\uADF8-\uC5C5\uB370\uC774\uD2B8-\uC548\uB428"
๐ :: (#657) ์ ์ฒญํ๋ฉด ์๋ฅ์ ์ฒญํ๊ธฐ ํ๊ทธ ์ ๋ฐ์ดํธ ์๋จ #689
Conversation
visible = appliedTitle != null, | ||
enter = slideInVertically() + fadeIn(), | ||
exit = slideOutVertically() + fadeOut(), | ||
) { | ||
if (appliedTitle != 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.
AnimatedVisibility์์ false๋ฉด ๋ฐ์ if๋ฌธ์ด ์๋ฏธ ์๋๊ฑฐ ์๋๊ฐ์?
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.
ํน์ ์ด๋๊ฐ 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.
์ฝ๋ ํ ๋ฒ ํด์ํด๋ณด์์ฃ
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.
์์ ํ์ต๋๋ค
|
||
override fun onCreate(owner: LifecycleOwner) { | ||
super.onCreate(owner) | ||
viewModelScope.launch { | ||
fetchAppliedStudyRoom() | ||
fetchAppliedRemainsOption() | ||
} | ||
} |
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.
init ๋์ oncreate๋ฅผ ๋ฃ์ผ์ ์ด์ ๊ฐ ์๋์? LIfeCycleOwner๋ฅผ ์ฌ์ฉํ๋ ๊ฒ ๊ฐ์ง ์์๋ฐ..
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.
init์ ์ฌ์ฉํ๋ฉด ์ ์ฒญ์ ํ๊ณ ๋ค๋ก๋์๊ฐ๊ธฐ๋ฅผ ํ์ ๋ ํ๊ทธ๊ฐ ์ ๋ฐ์ดํธ๊ฐ ๋์ง ์์ ์๋ช ์ฃผ๊ธฐ๋ฅผ ์ด์ฉํ์ฌ onCreate ๋ ๋๋ง๋ค ์ ๋ฐ์ดํธ ํ๋๋ก ๋ง๋ค์์ต๋๋ค.
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.
์.. ์ด๋ ๊ฒ ๊ตฌํํ๋ ๊ฒ๋ ๊ด์ฐฎ์ง๋ง ์ ์ฒญ ํ์ด์ง์์ onDisposeํ ๋ ์ ์ฒญ ์์ฑ/์ทจ์/๋ณ๊ฒฝ ์ด๋ฒคํธ๋ฅผ ๋๊ฒจ์ฃผ๊ณ ์ด ํ์ด์ง์์ ๊ธฐ์กด ์ํ์ ๋น๊ตํ์ ๋ ๋ณ๊ฒฝ์ด ์์๋๋ง ์๋ฒ์์ ๊ฐ์ ์กฐํํ๋๊ฒ ๋ ํจ์จ์ ์ผ ๊ฒ ๊ฐ์๋ฐ ์ด๋ป๊ฒ ์๊ฐํ์ธ์?
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.
์ข์๊ฑฐ ๊ฐ์ต๋๋ค.
๊ทผ๋ฐ ์ด ๊ธฐ๋ฅ์ ๋นจ๋ฆฌ ์ฌ์ฉํด์ผ ํด์ ์ฐ์ ๋จธ์งํ๊ณ ๋์ค์ ๋ฆฌํํ ๋ง ํ๋์ชฝ์ผ๋ก ํด๋ ๋ ๊น์?
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.
์ข์ต๋๋ค ๐
TODO ์ด์ ๋จ๊ฒจ์ฃผ์ธ์
vertical = PaddingDefaults.Small, | ||
), | ||
) { | ||
Text(text = appliedTitle!!) |
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.
์ด๊ฑฐ ์คํ ํด๋ณด์ จ๋์? ํฐ์ง ๊ฒ ๊ฐ์๋ฐ
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.
์ animatedvisibility๊ฐ visible์ด๋ ์๋๋ (appliedTitle์ด 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.
์์ ํ์ต๋๋ค
|
||
override fun onCreate(owner: LifecycleOwner) { | ||
super.onCreate(owner) | ||
viewModelScope.launch { | ||
fetchAppliedStudyRoom() | ||
fetchAppliedRemainsOption() | ||
} | ||
} |
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.
์.. ์ด๋ ๊ฒ ๊ตฌํํ๋ ๊ฒ๋ ๊ด์ฐฎ์ง๋ง ์ ์ฒญ ํ์ด์ง์์ onDisposeํ ๋ ์ ์ฒญ ์์ฑ/์ทจ์/๋ณ๊ฒฝ ์ด๋ฒคํธ๋ฅผ ๋๊ฒจ์ฃผ๊ณ ์ด ํ์ด์ง์์ ๊ธฐ์กด ์ํ์ ๋น๊ตํ์ ๋ ๋ณ๊ฒฝ์ด ์์๋๋ง ์๋ฒ์์ ๊ฐ์ ์กฐํํ๋๊ฒ ๋ ํจ์จ์ ์ผ ๊ฒ ๊ฐ์๋ฐ ์ด๋ป๊ฒ ์๊ฐํ์ธ์?
|
||
override fun onCreate(owner: LifecycleOwner) { | ||
super.onCreate(owner) | ||
viewModelScope.launch { | ||
fetchAppliedStudyRoom() | ||
fetchAppliedRemainsOption() | ||
} | ||
} |
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.
์ข์ต๋๋ค ๐
TODO ์ด์ ๋จ๊ฒจ์ฃผ์ธ์
AnimatedVisibility( | ||
visible = appliedTitle != null, | ||
enter = slideInVertically() + fadeIn(), | ||
exit = slideOutVertically() + fadeOut(), | ||
) { | ||
if(appliedTitle!= 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.
ํ ๊ฒฐ๊ตญ ์์๋ณต๊ท๊ตฐ์..
๊ฐ์
์์ ์ฌํญ
์ถ๊ฐ ๋ก ํ ๋ง