-
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
Feature/tgyuu/#61 #62
Conversation
07f59e4
to
c8b82a4
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.
νκ·μ κ³ μλ§μ΄ νμ ¨μ΄μ !!
λλμ΄ Compose 100 % μ΄λ£¨μλ€μ !
μ λ μμ§ Compose Navigation λ΄μ©μ μ λͺ°λΌμ, μμνκ² λ¦¬λ·° λ¨κ² λ΄€μ΄μ !
νκ·μ μνκ³΅λΆ μ΄μ¬ννμꡬ, μ΄λ²νκΈ°λ λ§λ¬΄λ¦¬ μνμκΈΈ λ°λκ²μ βΊβΊ
onNavigateToDestination: (TopLevelDestination) -> Unit, | ||
bottomBarState: Boolean, | ||
) { | ||
AnimatedContent( |
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.
AnminatedContentλ μ΄λ€ κΈ°λ₯μ νλ μ»΄ν¬λνΈμΈκ°μ ??
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.
tgyuuAn/BaekyoungE#9 (comment)
Compose λ‘ BottomNavigationμ μ¨κΈ°κ³ 보μ¬μ£Όκ³ ν λ,
μ λλ©μ΄μ μ μ€μ μ’ λ λΆλλ½κ² λ§λ€μ΄μ£Όλ ν¨κ³Όλ₯Ό ν©λλ€!!
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.
πππππ
import com.wap.wapp.feature.survey.navigation.surveyScreen | ||
|
||
@Composable | ||
fun WappNavHost( |
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.
ππππππππ
fun NavGraphBuilder.managementScreen( | ||
navigateToEventRegistration: () -> Unit, | ||
navigateToSurveyRegistration: () -> Unit, | ||
showToast: (String) -> Unit = {}, //Todo |
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.
showToast: (String) -> Unit = {}, //Todo
μ΄ λΆλΆ λ§μνμλ κ±ΈκΉμ ??
μ§νΈλμ΄ μμ νμ λΆλΆ μ€μμ Toastλ₯Ό λμ°λ λΆλΆμ΄ μμ΄μ μΆκ°νμ΄μ.
κ·Όλ°,
Toastλ₯Ό λμΈ λ contextκ° νμν΄μ λΉμ°ν SAAλκΉ MainActivityμμ λμ΄μμΌ κ² λ€ μκ°νλλ°,
val context = LocalContext.current
λ‘ λμ΄μμ μ¬μ©ν μ μλ€μ..
https://stackoverflow.com/questions/58743541/how-to-get-context-in-jetpack-compose
μμ ν΄μΌ ν κ² κ°μμ
surveyId: String = "", | ||
navigateToManagement: () -> Unit, | ||
) { | ||
val surveyUiState by viewModel.surveyUiState.collectAsStateWithLifecycle() |
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.
μ’μ€μ€μ€μΏμ΅λλ€
μ λ²μ νΉμ collectAsStateWithLifecycle importκ° μλλ€κ³ νμμ§ μμλμ ??
λ°λ‘ λνλμλ₯Ό μΆκ°ν΄μΌ μ¬μ©ν μ μλ μ΅μ€ν μ μΈκ°μ ?
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.
λ§μ΅λλ·
compose-lifecycle = "2.6.0-beta01"
compose-lifecycle = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "compose-lifecycle" }
λ₯Ό μΆκ°ν΄μ€μΌμ§ μ¬μ©ν μ μλλΌκ³ μ...!
onDoneButtonClicked: () -> Unit, | ||
onBackButtonClicked: () -> Unit, | ||
) { | ||
val surveyUiState = viewModel.surveyUiState.collectAsState().value |
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.
μ΄λΆλΆμ μκ°λ λͺ»νλ€μ γ·γ·
λμ€μ λ¦°νΈ μ²΄ν¬ μννμꡬ γ γ κΉν μ‘μ λ€μ κ²μ¬ λΆνλλ €μ© ππππππππ |
1. π κ΄λ ¨λ μ΄μ λ° μκ°
colsed #61
2. π₯λ³κ²½λ μ
3. πΈ μ€ν¬λ¦°μ·(μ ν)
4. π‘μκ²λ νΉμ κΆκΈν μ¬νλ€
κ·Όλ° μ κ° Gradle λ μΆ©λν΄μ,
μλ‘ git Cloneν΄μ μμ ν΄μ lint κ° μ μ©μ΄ μλμ΄μμ΄μ.
λ AndroidSutdio μμ μ 체 μ½λ clean Up μ λλ €μ, lint κΊ μ§ κ³³μ΄ λ§μ΄ μμκ±°μμ.
μΌλ¨ μκ° μμ΄μ λμΆ© PRμ¬λ¦¬κ³ νΉμ μ§νΈλμ΄λ λμ€μ μ κ° μκ° λ λλ©΄ lint λλ €μΌκ² μ΄μ.