Explore the world of passports for Jetpack Compose
Its primary purpose is to display the passport of a selected country when users choose the name of a country.
1.0.0
val selectedCountry = remember { mutableStateOf(Country.TURKEY) }
PassportLib(
modifier = Modifier
.background(Color.White)
.fillMaxWidth()
.padding(horizontal = 16.dp, vertical = 8.dp),
onClicked = { selectedCountry.value = it },
)
material3 is required.
Groovy
maven { url 'https://jitpack.io' }
implementation 'androidx.compose.material3:material3:1.1.0'
implementation 'com.github.ridvanozcan:PassportLib:<latest-version>'
Kotlin DSL
maven(url = "https://jitpack.io")
implementation("androidx.compose.material3:material3:1.1.0")
implementation("com.github.ridvan:PassportLib:<latest-version>")
Copyright 2023 tfaki.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.