@@ -14,7 +14,9 @@ import androidx.compose.foundation.layout.height
1414import androidx.compose.foundation.layout.padding
1515import androidx.compose.foundation.layout.size
1616import androidx.compose.foundation.layout.width
17+ import androidx.compose.foundation.rememberScrollState
1718import androidx.compose.foundation.shape.RoundedCornerShape
19+ import androidx.compose.foundation.verticalScroll
1820import androidx.compose.material3.BottomSheetScaffold
1921import androidx.compose.material3.Button
2022import androidx.compose.material3.ButtonDefaults
@@ -58,6 +60,8 @@ fun AddMenuTagScreen(modifier: Modifier = Modifier) {
5860 val useTagBottomSheet by rememberSaveable { mutableStateOf(false ) }
5961 var memoTitle by rememberSaveable { mutableStateOf(" " ) }
6062 var memoBody by rememberSaveable { mutableStateOf(" " ) }
63+ val scrollState = rememberScrollState()
64+
6165 BottomSheetScaffold (
6266 scaffoldState = scaffoldState,
6367 topBar = {
@@ -71,10 +75,10 @@ fun AddMenuTagScreen(modifier: Modifier = Modifier) {
7175 },
7276 sheetContainerColor = Color .White ,
7377 sheetContent = {
74- if (useTagBottomSheet){
78+ if (useTagBottomSheet) {
7579 // 음색 태그 선택하는 bottom sheet
7680 TagSelectBottomSheet ()
77- }else {
81+ } else {
7882 // 아이콘 선택하는 bottom sheet
7983 IconSelectBottomSheet ()
8084 }
@@ -158,7 +162,7 @@ fun AddMenuTagScreen(modifier: Modifier = Modifier) {
158162 text = memoTitle,
159163 onTextChange = { memoTitle = it },
160164 shape = RoundedCornerShape (8 .dp),
161- paddingValues = PaddingValues (28 .dp,12 .dp),
165+ paddingValues = PaddingValues (28 .dp, 12 .dp),
162166 containerColor = Neutral100 ,
163167 placeHolder = {
164168 Text (
@@ -170,25 +174,34 @@ fun AddMenuTagScreen(modifier: Modifier = Modifier) {
170174 textStyle = ourMenuTypography().pretendard_500_14.copy(color = Neutral700 )
171175 )
172176 Spacer (modifier = Modifier .height(8 .dp))
173- CustomTextField (
177+ Box (
174178 modifier = Modifier
175179 .fillMaxWidth()
176180 .height(88 .dp)
177- .border(1 .dp, Neutral300 , RoundedCornerShape (8 .dp)),
178- text = memoBody,
179- onTextChange = { memoBody = it },
180- shape = RoundedCornerShape (8 .dp),
181- paddingValues = PaddingValues (28 .dp,12 .dp),
182- containerColor = Neutral100 ,
183- placeHolder = {
184- Text (
185- text = stringResource(R .string.type_body),
186- style = ourMenuTypography().pretendard_500_12,
187- color = Neutral500 ,
188- )
189- },
190- textStyle = ourMenuTypography().pretendard_500_14.copy(color = Neutral700 )
191- )
181+ .background(Neutral100 )
182+ .border(1 .dp, Neutral300 , RoundedCornerShape (8 .dp))
183+ .verticalScroll(scrollState),
184+ ) {
185+ CustomTextField (
186+ modifier = Modifier
187+ .fillMaxWidth()
188+ .height(88 .dp),
189+ text = memoBody,
190+ singleLine = false ,
191+ onTextChange = { memoBody = it },
192+ shape = RoundedCornerShape (8 .dp),
193+ paddingValues = PaddingValues (28 .dp, 12 .dp),
194+ containerColor = Neutral100 ,
195+ placeHolder = {
196+ Text (
197+ text = stringResource(R .string.type_body),
198+ style = ourMenuTypography().pretendard_500_12,
199+ color = Neutral500 ,
200+ )
201+ },
202+ textStyle = ourMenuTypography().pretendard_500_14.copy(color = Neutral700 )
203+ )
204+ }
192205
193206 // 아이콘
194207 Spacer (modifier = Modifier .height(20 .dp))
0 commit comments