Fix wrong modifier usage.

This commit is contained in:
Benoit Marty
2023-07-03 13:10:30 +02:00
committed by Benoit Marty
parent 9167bf516f
commit fba639fd8f
@@ -92,7 +92,7 @@ private fun OnBoardingContent(modifier: Modifier = Modifier) {
modifier = modifier.fillMaxSize(), modifier = modifier.fillMaxSize(),
) { ) {
Box( Box(
modifier = modifier.fillMaxSize(), modifier = Modifier.fillMaxSize(),
contentAlignment = BiasAlignment( contentAlignment = BiasAlignment(
horizontalBias = 0f, horizontalBias = 0f,
verticalBias = -0.4f verticalBias = -0.4f
@@ -101,7 +101,7 @@ private fun OnBoardingContent(modifier: Modifier = Modifier) {
// Dark and light icon does not have the same size, add padding to the smaller one // Dark and light icon does not have the same size, add padding to the smaller one
val imagePadding = if (isLight) 28.dp else 0.dp val imagePadding = if (isLight) 28.dp else 0.dp
Image( Image(
modifier = modifier modifier = Modifier
.size(278.dp) .size(278.dp)
.padding(imagePadding), .padding(imagePadding),
painter = painterResource(id = iconDrawableRes), painter = painterResource(id = iconDrawableRes),
@@ -109,7 +109,7 @@ private fun OnBoardingContent(modifier: Modifier = Modifier) {
) )
} }
Box( Box(
modifier = modifier.fillMaxSize(), modifier = Modifier.fillMaxSize(),
contentAlignment = BiasAlignment( contentAlignment = BiasAlignment(
horizontalBias = 0f, horizontalBias = 0f,
verticalBias = 0.6f verticalBias = 0.6f