From d750050bf33eb8fb6b5d8694df9b268e4118d80a Mon Sep 17 00:00:00 2001 From: Parvesh Kumar <40619318+ParveshSandila@users.noreply.github.com> Date: Mon, 1 May 2023 17:36:26 +0530 Subject: [PATCH 1/3] Create README.md --- README.md | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9080986 --- /dev/null +++ b/README.md @@ -0,0 +1,78 @@ +

Country Code Chooser (Jetpack Compose)

+ +The Android library is designed to provide a user-friendly interface for selecting country codes from various countries. The library is specifically built to work seamlessly with Android Jetpack Compose, allowing developers to quickly and easily integrate it into their projects. + +One of the standout features of this library is its built-in support for displaying a flag for each country. This is especially useful when building international apps where users may not be familiar with the country codes of other regions. + +The library offers a range of customization options, allowing developers to tailor the user interface to match their app's design. For example, developers can customize the TextFiled, font styles, and sizes of the text. + +

Example Code:-

+ +```kotlin + CountryCodeChooser( + modifier = Modifier + .weight(1.5f) + .height(55.dp) + .border( + width = 1.dp, + shape = RoundedCornerShape(5.dp), + color = Color.Gray + ), + defaultCountryCode = "1", + countryCodeType = CountryCodeType.FLAG, + onCountyCodeSelected = { code, codeWithPrefix -> + Log.d("SelectedCountry","$code, $codeWithPrefix") + } +) +``` + +

Preview:-

+ + + Jetpack compose Lazy column example + + + Jetpack compose Lazy column example + + Jetpack compose Lazy column example + + Jetpack compose Lazy column example + + Jetpack compose Lazy column example + + + +

How to use:-

+To get a Git project into your build: +Step 1. Add the JitPack repository to your build file + +```kotlin +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } +} +``` + +Step 2. Add the dependency + +```kotlin +dependencies { + implementation 'com.github.ParveshSandila:CountryCodeChooser:Tag' +} +``` +Click here to check on jitpack.io From 0dd8d3f79639fce46dbc28e88bb3f7bfbbaf9029 Mon Sep 17 00:00:00 2001 From: Parvesh Kumar <40619318+ParveshSandila@users.noreply.github.com> Date: Mon, 1 May 2023 17:48:49 +0530 Subject: [PATCH 2/3] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 9080986..d9b2d27 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,18 @@ The library offers a range of customization options, allowing developers to tail />
+

Features:-

+ + +*Other laguages coming soon* + +

How to use:-

To get a Git project into your build: From 0479fd5a7c4f2cc8f98d079ba2ed0c07abd44eec Mon Sep 17 00:00:00 2001 From: Parvesh Kumar <40619318+ParveshSandila@users.noreply.github.com> Date: Mon, 1 May 2023 17:59:55 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d9b2d27..457ba5d 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Step 2. Add the dependency ```kotlin dependencies { - implementation 'com.github.ParveshSandila:CountryCodeChooser:Tag' + implementation 'com.github.ParveshSandila:CountryCodeChooser:1.0' } ``` Click here to check on jitpack.io