Minor changes

This commit is contained in:
FirephoenixX02 2024-04-12 13:15:52 +02:00
parent 5610e46a3f
commit e5a8586560
2 changed files with 4 additions and 2 deletions

View file

@ -115,7 +115,7 @@ data class DetailScreen(
detailRow("Type:", pokemonData?.type?.capitalize() ?: "")
detailRow("Base XP:", pokemonData?.baseExperience.toString())
detailRow("Height:", pokemonData?.height.toString())
detailRow("Weight:", pokemonData?.weight.toString())
detailRow("Weight:", pokemonData?.weight.toString() + "kg")
}
}

View file

@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
@ -14,6 +15,7 @@ import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
@ -55,7 +57,7 @@ private fun StatRow(statName: String, progress: Int, color: Color) {
Spacer(modifier = Modifier.width(16.dp))
LinearProgressIndicator(
progress = progress / 200f,
modifier = Modifier.weight(2f),
modifier = Modifier.weight(2f).height(8.dp).clip(RoundedCornerShape(8.dp)),
color = color,
)
}