From 6468b10656dd697d8bd4588facea9a5f23154cc1 Mon Sep 17 00:00:00 2001 From: hbb20 Date: Sat, 30 Dec 2023 14:56:00 -0700 Subject: [PATCH] add title --- .../androidcountrypicker/compose/ComposeDemoActivity.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/hbb20/androidcountrypicker/compose/ComposeDemoActivity.kt b/app/src/main/java/com/hbb20/androidcountrypicker/compose/ComposeDemoActivity.kt index 3966138..59cc1e3 100644 --- a/app/src/main/java/com/hbb20/androidcountrypicker/compose/ComposeDemoActivity.kt +++ b/app/src/main/java/com/hbb20/androidcountrypicker/compose/ComposeDemoActivity.kt @@ -34,6 +34,7 @@ import androidx.compose.ui.res.painterResource import androidx.compose.ui.text.input.KeyboardType import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp +import com.google.android.material.shape.MarkerEdgeTreatment import com.hbb20.androidcountrypicker.R import com.hbb20.androidcountrypicker.compose.theme.DemoTheme import com.hbb20.contrypicker.flagpack1.FlagPack1 @@ -57,11 +58,8 @@ class ComposeDemoActivity : ComponentActivity() { modifier = Modifier.fillMaxSize(), color = MaterialTheme.colors.background, ) { - val (countryCode, setCountryCode) = remember { mutableStateOf("In") } Column(modifier = Modifier.verticalScroll(rememberScrollState())) { - CountryPicker(alpha2Code = countryCode) { - setCountryCode(it?.alpha2) - } + Text(text = "Jetpack Compose", style = MaterialTheme.typography.h5, color = MaterialTheme.colors.onSurface, modifier = Modifier.padding(16.dp)) OutOfBox() AutoDetectedInitialCountry() UseFlagPack()