Skip to content

Commit

Permalink
fixed UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagarjuna0033 committed Oct 22, 2024
1 parent 812110e commit 7611af3
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
Expand All @@ -37,7 +37,6 @@ import coil.compose.AsyncImage
import org.mifospay.core.designsystem.component.MifosButton
import org.mifospay.core.designsystem.component.MifosOutlinedButton
import org.mifospay.core.designsystem.theme.MifosBlue

@Composable
internal fun ShowQrContent(
qrDataBitmap: Bitmap,
Expand Down Expand Up @@ -68,8 +67,7 @@ internal fun ShowQrContent(
BorderStroke(2.dp, MaterialTheme.colorScheme.primary),
RoundedCornerShape(21.dp),
)
.padding(vertical = 15.dp)
.aspectRatio(1f),
.padding(vertical = 15.dp),
horizontalAlignment = Alignment.CenterHorizontally,
) {
Text(
Expand All @@ -81,7 +79,7 @@ internal fun ShowQrContent(
AsyncImage(
model = qrDataBitmap,
contentDescription = null,
modifier = Modifier.fillMaxSize(),
modifier = Modifier.size(335.dp, 300.dp),
)
}
Spacer(modifier = Modifier.weight(1f))
Expand Down

0 comments on commit 7611af3

Please sign in to comment.