MoreDialogFragment: Move X on dialog to far right
This commit is contained in:
committed by
Aayush Gupta
parent
81d3b15ce2
commit
dc51987f08
@@ -134,14 +134,7 @@ class MoreDialogFragment : DialogFragment() {
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun AppBar(tintColor: Color) {
|
fun AppBar(tintColor: Color) {
|
||||||
Box(contentAlignment = Alignment.CenterStart) {
|
Box(contentAlignment = Alignment.CenterEnd) {
|
||||||
IconButton(onClick = { findNavController().navigateUp() }) {
|
|
||||||
Icon(
|
|
||||||
painter = painterResource(id = R.drawable.ic_cancel),
|
|
||||||
contentDescription = stringResource(id = R.string.action_cancel),
|
|
||||||
tint = tintColor
|
|
||||||
)
|
|
||||||
}
|
|
||||||
Text(
|
Text(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
text = stringResource(id = R.string.app_name),
|
text = stringResource(id = R.string.app_name),
|
||||||
@@ -149,6 +142,13 @@ class MoreDialogFragment : DialogFragment() {
|
|||||||
color = tintColor,
|
color = tintColor,
|
||||||
textAlign = TextAlign.Center
|
textAlign = TextAlign.Center
|
||||||
)
|
)
|
||||||
|
IconButton(onClick = { findNavController().navigateUp() }) {
|
||||||
|
Icon(
|
||||||
|
painter = painterResource(id = R.drawable.ic_cancel),
|
||||||
|
contentDescription = stringResource(id = R.string.action_cancel),
|
||||||
|
tint = tintColor
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user