add score
This commit is contained in:
@@ -26,8 +26,12 @@ import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import com.smi.counselling.ui.theme.HPOSCounsellingTheme
|
||||
|
||||
class MainActivity : ComponentActivity() {
|
||||
@@ -68,6 +72,16 @@ fun HomeScreen(name: String, modifier: Modifier = Modifier) {
|
||||
.padding(start = 15.dp, top = 10.dp, bottom = 10.dp, end = 15.dp)
|
||||
.background(Color.Gray, RoundedCornerShape(5.dp)),
|
||||
)
|
||||
|
||||
Text("Score: 75%",
|
||||
style = TextStyle(
|
||||
fontSize = 28.sp,
|
||||
fontWeight = FontWeight.Medium,
|
||||
textAlign = TextAlign.Center,
|
||||
),
|
||||
modifier = Modifier
|
||||
.padding(10.dp)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user