mainactivity
This commit is contained in:
parent
cb5ecd7131
commit
a791484944
28
app/src/main/java/com/example/kalkulatorbmi/MainActivity.kt
Normal file
28
app/src/main/java/com/example/kalkulatorbmi/MainActivity.kt
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
package com.example.kalkulatorbmi
|
||||||
|
|
||||||
|
import android.os.Bundle
|
||||||
|
import androidx.activity.ComponentActivity
|
||||||
|
import androidx.activity.compose.setContent
|
||||||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
|
import androidx.compose.material3.MaterialTheme
|
||||||
|
import androidx.compose.material3.Surface
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
|
import com.example.kalkulatorbmi.ui.theme.KalkulatorBMITheme
|
||||||
|
|
||||||
|
class MainActivity : ComponentActivity() {
|
||||||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
super.onCreate(savedInstanceState)
|
||||||
|
setContent {
|
||||||
|
// Menerapkan tema yang sudah kita perbaiki
|
||||||
|
KalkulatorBMITheme {
|
||||||
|
Surface(
|
||||||
|
modifier = Modifier.fillMaxSize(),
|
||||||
|
color = MaterialTheme.colorScheme.background
|
||||||
|
) {
|
||||||
|
// Memulai navigasi aplikasi
|
||||||
|
AppNavigation()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user