This commit is contained in:
sathwikcs
2024-10-07 13:00:58 +05:30
parent 9cafedc9a0
commit 8524a1b56e
2 changed files with 7 additions and 21 deletions

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@@ -19,29 +19,9 @@ class MainActivity : ComponentActivity() {
enableEdgeToEdge()
setContent {
SMIAttendanceTheme {
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
Greeting(
name = "Android",
modifier = Modifier.padding(innerPadding)
)
}
}
}
}
}
@Composable
fun Greeting(name: String, modifier: Modifier = Modifier) {
Text(
text = "Hello $name!",
modifier = modifier
)
}
@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
SMIAttendanceTheme {
Greeting("Android")
}
}