@@ -135,102 +135,102 @@ fun LetterScreen(
135135 .verticalScroll(scrollState),
136136 horizontalAlignment = Alignment .CenterHorizontally
137137 ) {
138- Box {
139- Image (
140- painter = painterResource(Res .drawable.img_letter_background),
141- contentDescription = " Background Image" ,
142- modifier = Modifier .fillMaxWidth(),
143- contentScale = ContentScale .FillWidth
144- )
145-
146- SubcomposeAsyncImage (
147- model = ImageRequest .Builder (LocalPlatformContext .current)
148- .data(fairyImage)
149- .crossfade(true )
150- .build(),
151- contentDescription = " $fairyImage image" ,
152- contentScale = ContentScale .Inside ,
153- modifier = Modifier
154- .size(108 .dp)
155- .align(Alignment .BottomCenter )
156- .offset(y = (- 49 ).dp)
157- .clip(RoundedCornerShape (16 .dp)),
158- error = {
159- // TODO : 에러 이미지 처리
160- },
161- )
162- }
138+ Box {
139+ Image (
140+ painter = painterResource(Res .drawable.img_letter_background),
141+ contentDescription = " Background Image" ,
142+ modifier = Modifier .fillMaxWidth(),
143+ contentScale = ContentScale .FillWidth
144+ )
163145
164- Column (
165- modifier = Modifier
166- .let { modifier ->
167- if (isKeyboardVisible) {
168- modifier.fillMaxWidth()
169- } else {
170- modifier.weight(1f ).fillMaxWidth()
171- }
172- }
173- .background(
174- brush = Brush .verticalGradient(
175- colors = listOf (
176- Color (0xFF171E2D ),
177- Color (0xFF1A1A1B )
178- )
179- )
180- ),
181- horizontalAlignment = Alignment .CenterHorizontally
182- ) {
183- Spacer (modifier = Modifier .height(28 .dp))
146+ SubcomposeAsyncImage (
147+ model = ImageRequest .Builder (LocalPlatformContext .current)
148+ .data(fairyImage)
149+ .crossfade(true )
150+ .build(),
151+ contentDescription = " $fairyImage image" ,
152+ contentScale = ContentScale .Inside ,
153+ modifier = Modifier
154+ .size(108 .dp)
155+ .align(Alignment .BottomCenter )
156+ .offset(y = (- 49 ).dp)
157+ .clip(RoundedCornerShape (16 .dp)),
158+ error = {
159+ // TODO : 에러 이미지 처리
160+ },
161+ )
162+ }
184163
185- EmotiaMultiLineTextField (
186- value = uiState.contents,
187- onValueChange = { viewModel.handleIntent(LetterIntent .UpdateContents (it)) },
188- placeholder = " ${fairyName} 에게 위로의 말을 건네보자." ,
164+ Column (
189165 modifier = Modifier
190166 .let { modifier ->
191167 if (isKeyboardVisible) {
192- modifier.heightIn(min = 160 .dp )
168+ modifier.fillMaxWidth( )
193169 } else {
194- modifier.weight(1f )
170+ modifier.weight(1f ).fillMaxWidth()
195171 }
196172 }
197- .fillMaxWidth()
198- .padding(horizontal = 24 .dp)
199- )
200-
201- Spacer (modifier = Modifier .height(32 .dp))
202-
203- EmotiaButton (
204- text = " 위로 건네기" ,
205- onClick = {
206- viewModel.handleIntent(LetterIntent .SendLetter )
207- },
208- enabled = uiState.contents.isNotBlank() && ! uiState.isLoading,
209- modifier = Modifier .padding(horizontal = 24 .dp)
210- )
173+ .background(
174+ brush = Brush .verticalGradient(
175+ colors = listOf (
176+ Color (0xFF171E2D ),
177+ Color (0xFF1A1A1B )
178+ )
179+ )
180+ ),
181+ horizontalAlignment = Alignment .CenterHorizontally
182+ ) {
183+ Spacer (modifier = Modifier .height(28 .dp))
184+
185+ EmotiaMultiLineTextField (
186+ value = uiState.contents,
187+ onValueChange = { viewModel.handleIntent(LetterIntent .UpdateContents (it)) },
188+ placeholder = " ${fairyName} 에게 위로의 말을 건네보자." ,
189+ modifier = Modifier
190+ .let { modifier ->
191+ if (isKeyboardVisible) {
192+ modifier.heightIn(min = 160 .dp)
193+ } else {
194+ modifier.weight(1f )
195+ }
196+ }
197+ .fillMaxWidth()
198+ .padding(horizontal = 24 .dp)
199+ )
211200
212- Spacer (modifier = Modifier .height(16 .dp))
201+ Spacer (modifier = Modifier .height(32 .dp))
213202
214- Text (
215- text = " 다시 대화하기" ,
216- modifier = Modifier
217- .fillMaxWidth()
218- .clickable {
219- onNavigateToChatting()
203+ EmotiaButton (
204+ text = " 위로 건네기" ,
205+ onClick = {
206+ viewModel.handleIntent(LetterIntent .SendLetter )
220207 },
221- style = typography.emotia14M.copy(
222- color = colors.lightGray,
223- textDecoration = TextDecoration .Underline
224- ),
225- textAlign = TextAlign .Center
226- )
208+ enabled = uiState.contents.isNotBlank() && ! uiState.isLoading,
209+ modifier = Modifier .padding(horizontal = 24 .dp)
210+ )
227211
228- Spacer (modifier = Modifier .height(24 .dp))
212+ Spacer (modifier = Modifier .height(16 .dp))
213+
214+ Text (
215+ text = " 다시 대화하기" ,
216+ modifier = Modifier
217+ .fillMaxWidth()
218+ .clickable {
219+ onNavigateToChatting()
220+ },
221+ style = typography.emotia14M.copy(
222+ color = colors.lightGray,
223+ textDecoration = TextDecoration .Underline
224+ ),
225+ textAlign = TextAlign .Center
226+ )
229227
230- if (isKeyboardVisible) {
231- Spacer (modifier = Modifier .height(210 .dp))
228+ Spacer (modifier = Modifier .height(24 .dp))
229+
230+ if (isKeyboardVisible) {
231+ Spacer (modifier = Modifier .height(210 .dp))
232+ }
232233 }
233- }
234234
235235 // TODO : 로딩이 빨라서 보류. 다른 정책 필요
236236// // 로딩 오버레이
0 commit comments