Skip to content

Commit

Permalink
Mod #18: add Box to Text and arrange to End
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Jul 6, 2024
1 parent 2ca35e5 commit 160c3b6
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions feature/my/src/main/java/com/hankki/feature/my/MyRoute.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.hankki.feature.my
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
Expand Down Expand Up @@ -150,16 +151,21 @@ fun MyScreen(

ButtonWithArrowIcon(stringResource(R.string.logout), navigateToDummy)

Text(
text = stringResource(R.string.quit),
Box(
modifier = Modifier
.fillMaxWidth()
.noRippleClickable()
.padding(top = 16.dp, end = 2.dp),
textAlign = TextAlign.End,
style = HankkiTheme.typography.body4,
color = Gray400
)
.fillMaxWidth(),
contentAlignment = Alignment.CenterEnd
) {
Text(
text = stringResource(R.string.quit),
modifier = Modifier
.noRippleClickable(onClick = navigateToDummy)
.padding(top = 14.dp, start = 15.dp, bottom = 13.dp),
textAlign = TextAlign.End,
style = HankkiTheme.typography.body4,
color = Gray400,
)
}
}
}

Expand Down

0 comments on commit 160c3b6

Please sign in to comment.