@@ -14,7 +14,9 @@ import androidx.compose.foundation.layout.height
14
14
import androidx.compose.foundation.layout.padding
15
15
import androidx.compose.foundation.layout.size
16
16
import androidx.compose.foundation.layout.width
17
+ import androidx.compose.foundation.rememberScrollState
17
18
import androidx.compose.foundation.shape.RoundedCornerShape
19
+ import androidx.compose.foundation.verticalScroll
18
20
import androidx.compose.material3.BottomSheetScaffold
19
21
import androidx.compose.material3.Button
20
22
import androidx.compose.material3.ButtonDefaults
@@ -58,6 +60,8 @@ fun AddMenuTagScreen(modifier: Modifier = Modifier) {
58
60
val useTagBottomSheet by rememberSaveable { mutableStateOf(false ) }
59
61
var memoTitle by rememberSaveable { mutableStateOf(" " ) }
60
62
var memoBody by rememberSaveable { mutableStateOf(" " ) }
63
+ val scrollState = rememberScrollState()
64
+
61
65
BottomSheetScaffold (
62
66
scaffoldState = scaffoldState,
63
67
topBar = {
@@ -71,10 +75,10 @@ fun AddMenuTagScreen(modifier: Modifier = Modifier) {
71
75
},
72
76
sheetContainerColor = Color .White ,
73
77
sheetContent = {
74
- if (useTagBottomSheet){
78
+ if (useTagBottomSheet) {
75
79
// 음색 태그 선택하는 bottom sheet
76
80
TagSelectBottomSheet ()
77
- }else {
81
+ } else {
78
82
// 아이콘 선택하는 bottom sheet
79
83
IconSelectBottomSheet ()
80
84
}
@@ -158,7 +162,7 @@ fun AddMenuTagScreen(modifier: Modifier = Modifier) {
158
162
text = memoTitle,
159
163
onTextChange = { memoTitle = it },
160
164
shape = RoundedCornerShape (8 .dp),
161
- paddingValues = PaddingValues (28 .dp,12 .dp),
165
+ paddingValues = PaddingValues (28 .dp, 12 .dp),
162
166
containerColor = Neutral100 ,
163
167
placeHolder = {
164
168
Text (
@@ -170,25 +174,34 @@ fun AddMenuTagScreen(modifier: Modifier = Modifier) {
170
174
textStyle = ourMenuTypography().pretendard_500_14.copy(color = Neutral700 )
171
175
)
172
176
Spacer (modifier = Modifier .height(8 .dp))
173
- CustomTextField (
177
+ Box (
174
178
modifier = Modifier
175
179
.fillMaxWidth()
176
180
.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
+ }
192
205
193
206
// 아이콘
194
207
Spacer (modifier = Modifier .height(20 .dp))
0 commit comments