#1 ์ปค์คํ ์์ด์ฝ ์์ ์ ์ฉ
#1-1 ์ปค์คํ ์์ด์ฝ
Nutri Capture ํ๋ก ํธ์๋ - 'ํผ์' ์์ด์ฝ ๊ตฌํ
#1 ๊ฐ์#1-1 ์ง๊ธ๊น์ง์ ์ฌ์ Nutri Capture ํ๋ก ํธ์๋ - ์ปค์คํ BottomSheetScaffold ๊ฐ๋ฐ ์ ์#1 ๊ฐ์#1-1 ๊ฐ๋ฐ ์ด์ ๋ง๋ก ์ค๋ช ํ๊ธฐ ํ๋ค์ง๋ง, BottomSheetScaffold์ ๋ด๋ถ ์ฝ๋๋ฅผ ์ด์ง๋ง ๋ฐ๊พธ๋ฉด ๋ด๊ฐ ์ํ๋ ๋
kenel.tistory.com
์ด์ ์ ๋ง๋ ์์ด์ฝ์ด๋ค. ๋ง๋ค์์ผ๋, ์ฐ์ ๋ณธ ํ๋ก์ ํธ์ ์ ์ฉ๋ถํฐ ํด๋ดค๋ค.
#1-2 ์์ ์ ์ฉ ์ฝ๋
...
@Composable
fun NutrientBottomSheet(
viewModel: NutrientViewModel = hiltViewModel()
) {
val inputtedDayMeal = viewModel.nutrientScreenState.collectAsState().value.inputtedDayMeal
NutrientInputKeyboard(
modifier = Modifier.fillMaxSize(), inputtedDayMeal = inputtedDayMeal
)
}
@Composable
fun NutrientInputKeyboard(
modifier: Modifier = Modifier,
inputtedDayMeal: DayMeal,
) {
LazyVerticalGrid(
columns = GridCells.Adaptive(minSize = 100.dp),
modifier = Modifier.fillMaxSize(),
contentPadding = PaddingValues(12.dp),
verticalArrangement = Arrangement.spacedBy(12.dp),
horizontalArrangement = Arrangement.SpaceBetween
) {
items(
11 // TODO: inputtedDayMeal.nutritionInfo์ ๊ฐ ํ๋กํผํฐ๋งํผ item ์์ฑ
) {
Box(
modifier = Modifier
.fillMaxSize()
.border(width = 1.dp, color = Color.Black),
contentAlignment = Alignment.Center
) {
ResponsiveArcSurroundedIconButton(
imageVector = Icons.Sharp.Done,
contentDescription = "test",
currentLevel = 2,
maxLevel = 3,
arcColor = Color.Yellow,
arcWidth = 15
) {
// TODO: inputtedDayMeal์ ๊ฐ์ ๋ณ๊ฒฝํ๋ event
}
}
}
}
}
์ฌ๊ธฐ๊น์ง ํ๊ณ Commitํ๊ธฐ๋ก ๊ฒฐ์ฌํ๋ค. ์๋ํ๋ฉด, ๋ฐฑ์๋์ ์ผ๋ก ๋ฆฌํฉํ ๋งํ ๋ถ๋ถ์ด ์๋นํ๋ค๋ ๊ฑธ ์์๊ธฐ ๋๋ฌธ์ด๋ค. ์ฌ๊ธฐ์ ๋ฉ์ถ์ง ์์ผ๋ฉด ์คํ๊ฒํฐ ์ฝ๋๊ฐ ๋๋ฒ๋ฆด ๊ฑฐ๋ผ๋ ์ง๊ฐ์ด ๋ค์๋ค.
#1-3 ์คํฌ๋ฆฐ์ท

์์ ์ฝ๋์ง๋ง ๊ทธ๋ญ์ ๋ญ ์ ํ์๋๋ค. ์ฝ๋ ๋ฆฌํฉํ ๋ง ํ์ ๋ ๋ค๋ฌ์ด๋ณด๊ฒ ๋ค.
#2 ์์ฑ๋ ์ฑ
#2-1 ์ด ๊ฒ์๊ธ ์์ ์ Commit
GitHub - Kanmanemone/nutri-capture-new
Contribute to Kanmanemone/nutri-capture-new development by creating an account on GitHub.
github.com
#2-2 ๋ณธ ํ๋ก์ ํธ์ ๊ฐ์ฅ ์ต์ Commit
GitHub - Kanmanemone/nutri-capture-new
Contribute to Kanmanemone/nutri-capture-new development by creating an account on GitHub.
github.com
'๊ฐ๋ฐ ์ผ์ง ๐ป > Nutri Capture' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Nutri Capture ํ๋ก ํธ์๋ - NutrientBottomSheet ๋ถ๋ถ ๊ตฌํ (0) | 2025.03.26 |
---|---|
Nutri Capture ๋ฐฑ์๋ - NutritionInfo ๋ฆฌํฉํ ๋ง (0) | 2025.03.26 |
Nutri Capture ํ๋ก ํธ์๋ - 'ํผ์' ์์ด์ฝ ๊ตฌํ (0) | 2025.03.20 |
Nutri Capture ํ๋ก ํธ์๋ - ์ปค์คํ BottomSheetScaffold ๊ฐ๋ฐ ์ ์ (0) | 2025.03.19 |
Nutri Capture ๋ฐฑ์๋ - Hilt ๋์ (0) | 2025.02.01 |