1.3.0
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
## 1.3.0
|
||||||
|
|
||||||
|
- Fixed selection dialog length
|
||||||
|
|
||||||
|
- Added i18n with `CountryLocalizations`
|
||||||
|
|
||||||
## 1.2.4
|
## 1.2.4
|
||||||
|
|
||||||
Fixed a bug that was making impossible to update initial selection
|
Fixed a bug that was making impossible to update initial selection
|
||||||
|
|||||||
15
README.md
15
README.md
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
A flutter package for showing a country code selector.
|
A flutter package for showing a country code selector.
|
||||||
|
|
||||||
|
It supports i18n.
|
||||||
|
|
||||||
<img src="https://raw.githubusercontent.com/Salvatore-Giordano/CountryCodePicker/master/screenshots/screen1.png" width="240"/>
|
<img src="https://raw.githubusercontent.com/Salvatore-Giordano/CountryCodePicker/master/screenshots/screen1.png" width="240"/>
|
||||||
<img src="https://raw.githubusercontent.com/Salvatore-Giordano/CountryCodePicker/master/screenshots/screen2.png" width="240"/>
|
<img src="https://raw.githubusercontent.com/Salvatore-Giordano/CountryCodePicker/master/screenshots/screen2.png" width="240"/>
|
||||||
|
|
||||||
@@ -15,8 +17,8 @@ Just put the component in your application setting the onChanged callback.
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => new Scaffold(
|
Widget build(BuildContext context) => new Scaffold(
|
||||||
body: new Center(
|
body: Center(
|
||||||
child: new CountryCodePicker(
|
child: CountryCodePicker(
|
||||||
onChanged: print,
|
onChanged: print,
|
||||||
// Initial selection and favorite can be one of code ('IT') OR dial_code('+39')
|
// Initial selection and favorite can be one of code ('IT') OR dial_code('+39')
|
||||||
initialSelection: 'IT',
|
initialSelection: 'IT',
|
||||||
@@ -33,19 +35,12 @@ Just put the component in your application setting the onChanged callback.
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: Your onChanged function can be any function of the type shown below:
|
|
||||||
|
|
||||||
```dart
|
|
||||||
(CountryCode)->dynamic
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
|
|
||||||
void _onCountryChange(CountryCode countryCode) {
|
void _onCountryChange(CountryCode countryCode) {
|
||||||
//Todo : manipulate the selected country code here
|
//TODO : manipulate the selected country code here
|
||||||
print("New Country selected: " + countryCode.toString());
|
print("New Country selected: " + countryCode.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
40
example/.gitignore
vendored
40
example/.gitignore
vendored
@@ -1,9 +1,37 @@
|
|||||||
|
# Miscellaneous
|
||||||
|
*.class
|
||||||
|
*.log
|
||||||
|
*.pyc
|
||||||
|
*.swp
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.atom/
|
||||||
|
.buildlog/
|
||||||
|
.history
|
||||||
|
.svn/
|
||||||
|
|
||||||
|
# IntelliJ related
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# The .vscode folder contains launch configuration and tasks you configure in
|
||||||
|
# VS Code which you may wish to be included in version control, so this line
|
||||||
|
# is commented out by default.
|
||||||
|
#.vscode/
|
||||||
|
|
||||||
|
# Flutter/Dart/Pub related
|
||||||
|
**/doc/api/
|
||||||
.dart_tool/
|
.dart_tool/
|
||||||
|
|
||||||
.packages
|
|
||||||
.pub/
|
|
||||||
|
|
||||||
build/
|
|
||||||
|
|
||||||
.flutter-plugins
|
.flutter-plugins
|
||||||
|
.flutter-plugins-dependencies
|
||||||
|
.packages
|
||||||
|
.pub-cache/
|
||||||
|
.pub/
|
||||||
|
/build/
|
||||||
|
|
||||||
|
# Web related
|
||||||
|
lib/generated_plugin_registrant.dart
|
||||||
|
|
||||||
|
# Exceptions to above rules.
|
||||||
|
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
||||||
|
|||||||
@@ -4,5 +4,7 @@
|
|||||||
# This file should be version controlled and should not be manually edited.
|
# This file should be version controlled and should not be manually edited.
|
||||||
|
|
||||||
version:
|
version:
|
||||||
revision: 3b309bda072a6b326e8aa4591a5836af600923ce
|
revision: 0b8abb4724aa590dd0f429683339b1e045a1594d
|
||||||
channel: beta
|
channel: stable
|
||||||
|
|
||||||
|
project_type: app
|
||||||
|
|||||||
@@ -1,8 +1,16 @@
|
|||||||
# hello_example
|
# example
|
||||||
|
|
||||||
Demonstrates how to use the hello plugin.
|
A new Flutter project.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
For help getting started with Flutter, view our online
|
This project is a starting point for a Flutter application.
|
||||||
[documentation](https://flutter.io/).
|
|
||||||
|
A few resources to get you started if this is your first Flutter project:
|
||||||
|
|
||||||
|
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
|
||||||
|
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
|
||||||
|
|
||||||
|
For help getting started with Flutter, view our
|
||||||
|
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
||||||
|
samples, guidance on mobile development, and a full API reference.
|
||||||
|
|||||||
13
example/android/.gitignore
vendored
13
example/android/.gitignore
vendored
@@ -1,10 +1,7 @@
|
|||||||
*.iml
|
gradle-wrapper.jar
|
||||||
*.class
|
/.gradle
|
||||||
.gradle
|
/captures/
|
||||||
|
/gradlew
|
||||||
|
/gradlew.bat
|
||||||
/local.properties
|
/local.properties
|
||||||
/.idea/workspace.xml
|
|
||||||
/.idea/libraries
|
|
||||||
.DS_Store
|
|
||||||
/build
|
|
||||||
/captures
|
|
||||||
GeneratedPluginRegistrant.java
|
GeneratedPluginRegistrant.java
|
||||||
|
|||||||
@@ -22,10 +22,15 @@ if (flutterVersionName == null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
apply plugin: 'kotlin-android'
|
||||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 27
|
compileSdkVersion 28
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main.java.srcDirs += 'src/main/kotlin'
|
||||||
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
disable 'InvalidPackage'
|
disable 'InvalidPackage'
|
||||||
@@ -33,12 +38,12 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||||
applicationId "com.salvatore.countrycodepicker"
|
applicationId "com.example.example"
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 27
|
targetSdkVersion 28
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
@@ -55,7 +60,8 @@ flutter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
||||||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
||||||
}
|
}
|
||||||
|
|||||||
7
example/android/app/src/debug/AndroidManifest.xml
Normal file
7
example/android/app/src/debug/AndroidManifest.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.example.example">
|
||||||
|
<!-- Flutter needs it to communicate with the running application
|
||||||
|
to allow setting breakpoints, to provide hot reload, etc.
|
||||||
|
-->
|
||||||
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
</manifest>
|
||||||
@@ -1,12 +1,5 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.example.helloexample">
|
package="com.example.example">
|
||||||
|
|
||||||
<!-- The INTERNET permission is required for development. Specifically,
|
|
||||||
flutter needs it to communicate with the running application
|
|
||||||
to allow setting breakpoints, to provide hot reload, etc.
|
|
||||||
-->
|
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
|
||||||
|
|
||||||
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
|
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
|
||||||
calls FlutterMain.startInitialization(this); in its onCreate method.
|
calls FlutterMain.startInitialization(this); in its onCreate method.
|
||||||
In most cases you can leave this as-is, but you if you want to provide
|
In most cases you can leave this as-is, but you if you want to provide
|
||||||
@@ -14,26 +7,24 @@
|
|||||||
FlutterApplication and put your custom class here. -->
|
FlutterApplication and put your custom class here. -->
|
||||||
<application
|
<application
|
||||||
android:name="io.flutter.app.FlutterApplication"
|
android:name="io.flutter.app.FlutterApplication"
|
||||||
android:label="hello_example"
|
android:label="example"
|
||||||
android:icon="@mipmap/ic_launcher">
|
android:icon="@mipmap/ic_launcher">
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
android:theme="@style/LaunchTheme"
|
android:theme="@style/LaunchTheme"
|
||||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||||
android:hardwareAccelerated="true"
|
android:hardwareAccelerated="true"
|
||||||
android:windowSoftInputMode="adjustResize">
|
android:windowSoftInputMode="adjustResize">
|
||||||
<!-- This keeps the window background of the activity showing
|
|
||||||
until Flutter renders its first frame. It can be removed if
|
|
||||||
there is no splash screen (such as the default splash screen
|
|
||||||
defined in @style/LaunchTheme). -->
|
|
||||||
<meta-data
|
|
||||||
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
|
|
||||||
android:value="true" />
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
<!-- Don't delete the meta-data below.
|
||||||
|
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||||
|
<meta-data
|
||||||
|
android:name="flutterEmbedding"
|
||||||
|
android:value="2" />
|
||||||
</application>
|
</application>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
package com.example.helloexample;
|
|
||||||
|
|
||||||
import android.os.Bundle;
|
|
||||||
import io.flutter.app.FlutterActivity;
|
|
||||||
import io.flutter.plugins.GeneratedPluginRegistrant;
|
|
||||||
|
|
||||||
public class MainActivity extends FlutterActivity {
|
|
||||||
@Override
|
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
GeneratedPluginRegistrant.registerWith(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.example.example
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import io.flutter.embedding.android.FlutterActivity
|
||||||
|
import io.flutter.embedding.engine.FlutterEngine
|
||||||
|
import io.flutter.plugins.GeneratedPluginRegistrant
|
||||||
|
|
||||||
|
class MainActivity: FlutterActivity() {
|
||||||
|
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
|
||||||
|
GeneratedPluginRegistrant.registerWith(flutterEngine);
|
||||||
|
}
|
||||||
|
}
|
||||||
7
example/android/app/src/profile/AndroidManifest.xml
Normal file
7
example/android/app/src/profile/AndroidManifest.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.example.example">
|
||||||
|
<!-- Flutter needs it to communicate with the running application
|
||||||
|
to allow setting breakpoints, to provide hot reload, etc.
|
||||||
|
-->
|
||||||
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
</manifest>
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
|
ext.kotlin_version = '1.3.50'
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.1.4'
|
classpath 'com.android.tools.build:gradle:3.5.0'
|
||||||
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,4 @@
|
|||||||
org.gradle.jvmargs=-Xmx1536M
|
org.gradle.jvmargs=-Xmx1536M
|
||||||
|
android.enableR8=true
|
||||||
|
android.useAndroidX=true
|
||||||
|
android.enableJetifier=true
|
||||||
|
|||||||
BIN
example/android/gradle/wrapper/gradle-wrapper.jar
vendored
BIN
example/android/gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
|
||||||
|
|||||||
160
example/android/gradlew
vendored
160
example/android/gradlew
vendored
@@ -1,160 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
##
|
|
||||||
## Gradle start up script for UN*X
|
|
||||||
##
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
DEFAULT_JVM_OPTS=""
|
|
||||||
|
|
||||||
APP_NAME="Gradle"
|
|
||||||
APP_BASE_NAME=`basename "$0"`
|
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
||||||
MAX_FD="maximum"
|
|
||||||
|
|
||||||
warn ( ) {
|
|
||||||
echo "$*"
|
|
||||||
}
|
|
||||||
|
|
||||||
die ( ) {
|
|
||||||
echo
|
|
||||||
echo "$*"
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# OS specific support (must be 'true' or 'false').
|
|
||||||
cygwin=false
|
|
||||||
msys=false
|
|
||||||
darwin=false
|
|
||||||
case "`uname`" in
|
|
||||||
CYGWIN* )
|
|
||||||
cygwin=true
|
|
||||||
;;
|
|
||||||
Darwin* )
|
|
||||||
darwin=true
|
|
||||||
;;
|
|
||||||
MINGW* )
|
|
||||||
msys=true
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Attempt to set APP_HOME
|
|
||||||
# Resolve links: $0 may be a link
|
|
||||||
PRG="$0"
|
|
||||||
# Need this for relative symlinks.
|
|
||||||
while [ -h "$PRG" ] ; do
|
|
||||||
ls=`ls -ld "$PRG"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
PRG="$link"
|
|
||||||
else
|
|
||||||
PRG=`dirname "$PRG"`"/$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
SAVED="`pwd`"
|
|
||||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
|
||||||
APP_HOME="`pwd -P`"
|
|
||||||
cd "$SAVED" >/dev/null
|
|
||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
|
||||||
if [ -n "$JAVA_HOME" ] ; then
|
|
||||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
||||||
# IBM's JDK on AIX uses strange locations for the executables
|
|
||||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
|
||||||
else
|
|
||||||
JAVACMD="$JAVA_HOME/bin/java"
|
|
||||||
fi
|
|
||||||
if [ ! -x "$JAVACMD" ] ; then
|
|
||||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
||||||
|
|
||||||
Please set the JAVA_HOME variable in your environment to match the
|
|
||||||
location of your Java installation."
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
JAVACMD="java"
|
|
||||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
||||||
|
|
||||||
Please set the JAVA_HOME variable in your environment to match the
|
|
||||||
location of your Java installation."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Increase the maximum file descriptors if we can.
|
|
||||||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
|
||||||
MAX_FD_LIMIT=`ulimit -H -n`
|
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
|
||||||
MAX_FD="$MAX_FD_LIMIT"
|
|
||||||
fi
|
|
||||||
ulimit -n $MAX_FD
|
|
||||||
if [ $? -ne 0 ] ; then
|
|
||||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For Darwin, add options to specify how the application appears in the dock
|
|
||||||
if $darwin; then
|
|
||||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For Cygwin, switch paths to Windows format before running java
|
|
||||||
if $cygwin ; then
|
|
||||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
|
||||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
|
||||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
|
||||||
|
|
||||||
# We build the pattern for arguments to be converted via cygpath
|
|
||||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
|
||||||
SEP=""
|
|
||||||
for dir in $ROOTDIRSRAW ; do
|
|
||||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
|
||||||
SEP="|"
|
|
||||||
done
|
|
||||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
|
||||||
# Add a user-defined pattern to the cygpath arguments
|
|
||||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
|
||||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
|
||||||
fi
|
|
||||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
||||||
i=0
|
|
||||||
for arg in "$@" ; do
|
|
||||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
|
||||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
|
||||||
|
|
||||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
|
||||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
|
||||||
else
|
|
||||||
eval `echo args$i`="\"$arg\""
|
|
||||||
fi
|
|
||||||
i=$((i+1))
|
|
||||||
done
|
|
||||||
case $i in
|
|
||||||
(0) set -- ;;
|
|
||||||
(1) set -- "$args0" ;;
|
|
||||||
(2) set -- "$args0" "$args1" ;;
|
|
||||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
|
||||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
|
||||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
|
||||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
|
||||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
|
||||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
|
||||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
|
||||||
function splitJvmOpts() {
|
|
||||||
JVM_OPTS=("$@")
|
|
||||||
}
|
|
||||||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
|
||||||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
|
||||||
|
|
||||||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
|
||||||
90
example/android/gradlew.bat
vendored
90
example/android/gradlew.bat
vendored
@@ -1,90 +0,0 @@
|
|||||||
@if "%DEBUG%" == "" @echo off
|
|
||||||
@rem ##########################################################################
|
|
||||||
@rem
|
|
||||||
@rem Gradle startup script for Windows
|
|
||||||
@rem
|
|
||||||
@rem ##########################################################################
|
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
|
||||||
|
|
||||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
set DEFAULT_JVM_OPTS=
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
set APP_BASE_NAME=%~n0
|
|
||||||
set APP_HOME=%DIRNAME%
|
|
||||||
|
|
||||||
@rem Find java.exe
|
|
||||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
||||||
|
|
||||||
set JAVA_EXE=java.exe
|
|
||||||
%JAVA_EXE% -version >NUL 2>&1
|
|
||||||
if "%ERRORLEVEL%" == "0" goto init
|
|
||||||
|
|
||||||
echo.
|
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
||||||
echo.
|
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
|
||||||
echo location of your Java installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:findJavaFromJavaHome
|
|
||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
|
||||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
||||||
|
|
||||||
if exist "%JAVA_EXE%" goto init
|
|
||||||
|
|
||||||
echo.
|
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
||||||
echo.
|
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
|
||||||
echo location of your Java installation.
|
|
||||||
|
|
||||||
goto fail
|
|
||||||
|
|
||||||
:init
|
|
||||||
@rem Get command-line arguments, handling Windowz variants
|
|
||||||
|
|
||||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
|
||||||
if "%@eval[2+2]" == "4" goto 4NT_args
|
|
||||||
|
|
||||||
:win9xME_args
|
|
||||||
@rem Slurp the command line arguments.
|
|
||||||
set CMD_LINE_ARGS=
|
|
||||||
set _SKIP=2
|
|
||||||
|
|
||||||
:win9xME_args_slurp
|
|
||||||
if "x%~1" == "x" goto execute
|
|
||||||
|
|
||||||
set CMD_LINE_ARGS=%*
|
|
||||||
goto execute
|
|
||||||
|
|
||||||
:4NT_args
|
|
||||||
@rem Get arguments from the 4NT Shell from JP Software
|
|
||||||
set CMD_LINE_ARGS=%$
|
|
||||||
|
|
||||||
:execute
|
|
||||||
@rem Setup the command line
|
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
|
||||||
|
|
||||||
:end
|
|
||||||
@rem End local scope for the variables with windows NT shell
|
|
||||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
|
||||||
|
|
||||||
:fail
|
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
||||||
rem the _cmd.exe /c_ return code!
|
|
||||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
|
||||||
exit /b 1
|
|
||||||
|
|
||||||
:mainEnd
|
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
|
||||||
|
|
||||||
:omega
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="JAVA_MODULE" version="4">
|
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
||||||
<exclude-output />
|
|
||||||
<content url="file://$MODULE_DIR$">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.idea" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="Dart SDK" level="project" />
|
|
||||||
<orderEntry type="library" name="Flutter Plugins" level="project" />
|
|
||||||
<orderEntry type="library" name="Dart Packages" level="project" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="JAVA_MODULE" version="4">
|
|
||||||
<component name="FacetManager">
|
|
||||||
<facet type="android" name="Android">
|
|
||||||
<configuration>
|
|
||||||
<option name="ALLOW_USER_CONFIGURATION" value="false" />
|
|
||||||
<option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/android/gen" />
|
|
||||||
<option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/android/gen" />
|
|
||||||
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/android/AndroidManifest.xml" />
|
|
||||||
<option name="RES_FOLDER_RELATIVE_PATH" value="/android/res" />
|
|
||||||
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/android/assets" />
|
|
||||||
<option name="LIBS_FOLDER_RELATIVE_PATH" value="/android/libs" />
|
|
||||||
<option name="PROGUARD_LOGS_FOLDER_RELATIVE_PATH" value="/android/proguard_logs" />
|
|
||||||
</configuration>
|
|
||||||
</facet>
|
|
||||||
</component>
|
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
||||||
<exclude-output />
|
|
||||||
<content url="file://$MODULE_DIR$/android">
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/android/app/src/main/java" isTestSource="false" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/android/gen" isTestSource="false" generated="true" />
|
|
||||||
</content>
|
|
||||||
<orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="Flutter for Android" level="project" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
||||||
63
example/ios/.gitignore
vendored
63
example/ios/.gitignore
vendored
@@ -1,45 +1,32 @@
|
|||||||
.idea/
|
|
||||||
.vagrant/
|
|
||||||
.sconsign.dblite
|
|
||||||
.svn/
|
|
||||||
|
|
||||||
.DS_Store
|
|
||||||
*.swp
|
|
||||||
profile
|
|
||||||
|
|
||||||
DerivedData/
|
|
||||||
build/
|
|
||||||
GeneratedPluginRegistrant.h
|
|
||||||
GeneratedPluginRegistrant.m
|
|
||||||
|
|
||||||
.generated/
|
|
||||||
|
|
||||||
*.pbxuser
|
|
||||||
*.mode1v3
|
*.mode1v3
|
||||||
*.mode2v3
|
*.mode2v3
|
||||||
|
*.moved-aside
|
||||||
|
*.pbxuser
|
||||||
*.perspectivev3
|
*.perspectivev3
|
||||||
|
**/*sync/
|
||||||
|
.sconsign.dblite
|
||||||
|
.tags*
|
||||||
|
**/.vagrant/
|
||||||
|
**/DerivedData/
|
||||||
|
Icon?
|
||||||
|
**/Pods/
|
||||||
|
**/.symlinks/
|
||||||
|
profile
|
||||||
|
xcuserdata
|
||||||
|
**/.generated/
|
||||||
|
Flutter/App.framework
|
||||||
|
Flutter/Flutter.framework
|
||||||
|
Flutter/Flutter.podspec
|
||||||
|
Flutter/Generated.xcconfig
|
||||||
|
Flutter/app.flx
|
||||||
|
Flutter/app.zip
|
||||||
|
Flutter/flutter_assets/
|
||||||
|
Flutter/flutter_export_environment.sh
|
||||||
|
ServiceDefinitions.json
|
||||||
|
Runner/GeneratedPluginRegistrant.*
|
||||||
|
|
||||||
!default.pbxuser
|
# Exceptions to above rules.
|
||||||
!default.mode1v3
|
!default.mode1v3
|
||||||
!default.mode2v3
|
!default.mode2v3
|
||||||
|
!default.pbxuser
|
||||||
!default.perspectivev3
|
!default.perspectivev3
|
||||||
|
|
||||||
xcuserdata
|
|
||||||
|
|
||||||
*.moved-aside
|
|
||||||
|
|
||||||
*.pyc
|
|
||||||
*sync/
|
|
||||||
Icon?
|
|
||||||
.tags*
|
|
||||||
|
|
||||||
/Flutter/app.flx
|
|
||||||
/Flutter/app.zip
|
|
||||||
/Flutter/flutter_assets/
|
|
||||||
/Flutter/App.framework
|
|
||||||
/Flutter/Flutter.framework
|
|
||||||
/Flutter/Generated.xcconfig
|
|
||||||
/ServiceDefinitions.json
|
|
||||||
|
|
||||||
Pods/
|
|
||||||
.symlinks/
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>en</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>App</string>
|
<string>App</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# This is a generated file; do not edit or check into version control.
|
|
||||||
export "FLUTTER_ROOT=D:\Programmi\flutter"
|
|
||||||
export "FLUTTER_APPLICATION_PATH=C:\Users\Salvatore Giordano\development\CountryCodePicker\example"
|
|
||||||
export "FLUTTER_TARGET=lib\main.dart"
|
|
||||||
export "FLUTTER_BUILD_DIR=build"
|
|
||||||
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
|
|
||||||
export "FLUTTER_FRAMEWORK_DIR=D:\Programmi\flutter\bin\cache\artifacts\engine\ios"
|
|
||||||
export "FLUTTER_BUILD_NAME=1.0.0"
|
|
||||||
export "FLUTTER_BUILD_NUMBER=1"
|
|
||||||
@@ -8,15 +8,12 @@
|
|||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||||
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
|
|
||||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||||
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
|
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
|
||||||
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||||
|
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||||
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
|
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
|
||||||
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||||
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
|
|
||||||
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
|
|
||||||
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
|
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||||
@@ -40,17 +37,15 @@
|
|||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||||
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
|
|
||||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||||
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
|
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
|
||||||
|
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||||
|
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||||
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
|
||||||
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
|
|
||||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||||
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
|
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
|
||||||
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
|
||||||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||||
@@ -73,7 +68,6 @@
|
|||||||
9740EEB11CF90186004384FC /* Flutter */ = {
|
9740EEB11CF90186004384FC /* Flutter */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
|
|
||||||
3B80C3931E831B6300D905FE /* App.framework */,
|
3B80C3931E831B6300D905FE /* App.framework */,
|
||||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
||||||
9740EEBA1CF902C7004384FC /* Flutter.framework */,
|
9740EEBA1CF902C7004384FC /* Flutter.framework */,
|
||||||
@@ -90,7 +84,6 @@
|
|||||||
9740EEB11CF90186004384FC /* Flutter */,
|
9740EEB11CF90186004384FC /* Flutter */,
|
||||||
97C146F01CF9000F007C117D /* Runner */,
|
97C146F01CF9000F007C117D /* Runner */,
|
||||||
97C146EF1CF9000F007C117D /* Products */,
|
97C146EF1CF9000F007C117D /* Products */,
|
||||||
CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
|
|
||||||
);
|
);
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
@@ -105,8 +98,6 @@
|
|||||||
97C146F01CF9000F007C117D /* Runner */ = {
|
97C146F01CF9000F007C117D /* Runner */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
|
|
||||||
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
|
|
||||||
97C146FA1CF9000F007C117D /* Main.storyboard */,
|
97C146FA1CF9000F007C117D /* Main.storyboard */,
|
||||||
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
||||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
||||||
@@ -114,6 +105,8 @@
|
|||||||
97C146F11CF9000F007C117D /* Supporting Files */,
|
97C146F11CF9000F007C117D /* Supporting Files */,
|
||||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
||||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
||||||
|
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
|
||||||
|
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
|
||||||
);
|
);
|
||||||
path = Runner;
|
path = Runner;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -121,7 +114,6 @@
|
|||||||
97C146F11CF9000F007C117D /* Supporting Files */ = {
|
97C146F11CF9000F007C117D /* Supporting Files */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
97C146F21CF9000F007C117D /* main.m */,
|
|
||||||
);
|
);
|
||||||
name = "Supporting Files";
|
name = "Supporting Files";
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -155,17 +147,18 @@
|
|||||||
97C146E61CF9000F007C117D /* Project object */ = {
|
97C146E61CF9000F007C117D /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastUpgradeCheck = 0910;
|
LastUpgradeCheck = 1020;
|
||||||
ORGANIZATIONNAME = "The Chromium Authors";
|
ORGANIZATIONNAME = "The Chromium Authors";
|
||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
97C146ED1CF9000F007C117D = {
|
97C146ED1CF9000F007C117D = {
|
||||||
CreatedOnToolsVersion = 7.3.1;
|
CreatedOnToolsVersion = 7.3.1;
|
||||||
|
LastSwiftMigration = 1100;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
|
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
|
||||||
compatibilityVersion = "Xcode 3.2";
|
compatibilityVersion = "Xcode 3.2";
|
||||||
developmentRegion = English;
|
developmentRegion = en;
|
||||||
hasScannedForEncodings = 0;
|
hasScannedForEncodings = 0;
|
||||||
knownRegions = (
|
knownRegions = (
|
||||||
en,
|
en,
|
||||||
@@ -188,9 +181,7 @@
|
|||||||
files = (
|
files = (
|
||||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
||||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
||||||
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
|
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
||||||
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
|
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
@@ -233,8 +224,7 @@
|
|||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
|
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
|
||||||
97C146F31CF9000F007C117D /* main.m in Sources */,
|
|
||||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
|
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
@@ -261,6 +251,83 @@
|
|||||||
/* End PBXVariantGroup section */
|
/* End PBXVariantGroup section */
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
/* Begin XCBuildConfiguration section */
|
||||||
|
249021D3217E4FDB00AE95B9 /* Profile */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_COMMA = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||||
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||||
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
VALIDATE_PRODUCT = YES;
|
||||||
|
};
|
||||||
|
name = Profile;
|
||||||
|
};
|
||||||
|
249021D4217E4FDB00AE95B9 /* Profile */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||||
|
buildSettings = {
|
||||||
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||||
|
ENABLE_BITCODE = NO;
|
||||||
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"$(PROJECT_DIR)/Flutter",
|
||||||
|
);
|
||||||
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
|
LIBRARY_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"$(PROJECT_DIR)/Flutter",
|
||||||
|
);
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
|
};
|
||||||
|
name = Profile;
|
||||||
|
};
|
||||||
97C147031CF9000F007C117D /* Debug */ = {
|
97C147031CF9000F007C117D /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
||||||
@@ -275,12 +342,14 @@
|
|||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
CLANG_WARN_COMMA = YES;
|
CLANG_WARN_COMMA = YES;
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
@@ -329,12 +398,14 @@
|
|||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
CLANG_WARN_COMMA = YES;
|
CLANG_WARN_COMMA = YES;
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||||
CLANG_WARN_INT_CONVERSION = YES;
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||||
@@ -358,6 +429,8 @@
|
|||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
VALIDATE_PRODUCT = YES;
|
VALIDATE_PRODUCT = YES;
|
||||||
};
|
};
|
||||||
@@ -368,6 +441,7 @@
|
|||||||
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
@@ -380,8 +454,11 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Flutter",
|
"$(PROJECT_DIR)/Flutter",
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.helloExample;
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
VERSIONING_SYSTEM = "apple-generic";
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
@@ -391,6 +468,7 @@
|
|||||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
@@ -403,8 +481,10 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Flutter",
|
"$(PROJECT_DIR)/Flutter",
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.helloExample;
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
VERSIONING_SYSTEM = "apple-generic";
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
@@ -417,6 +497,7 @@
|
|||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
97C147031CF9000F007C117D /* Debug */,
|
97C147031CF9000F007C117D /* Debug */,
|
||||||
97C147041CF9000F007C117D /* Release */,
|
97C147041CF9000F007C117D /* Release */,
|
||||||
|
249021D3217E4FDB00AE95B9 /* Profile */,
|
||||||
);
|
);
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
@@ -426,6 +507,7 @@
|
|||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
97C147061CF9000F007C117D /* Debug */,
|
97C147061CF9000F007C117D /* Debug */,
|
||||||
97C147071CF9000F007C117D /* Release */,
|
97C147071CF9000F007C117D /* Release */,
|
||||||
|
249021D4217E4FDB00AE95B9 /* Profile */,
|
||||||
);
|
);
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "0910"
|
LastUpgradeVersion = "1020"
|
||||||
version = "1.3">
|
version = "1.3">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
@@ -26,7 +26,6 @@
|
|||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
language = ""
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||||
<Testables>
|
<Testables>
|
||||||
</Testables>
|
</Testables>
|
||||||
@@ -46,7 +45,6 @@
|
|||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
language = ""
|
|
||||||
launchStyle = "0"
|
launchStyle = "0"
|
||||||
useCustomWorkingDirectory = "NO"
|
useCustomWorkingDirectory = "NO"
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
@@ -67,7 +65,7 @@
|
|||||||
</AdditionalOptions>
|
</AdditionalOptions>
|
||||||
</LaunchAction>
|
</LaunchAction>
|
||||||
<ProfileAction
|
<ProfileAction
|
||||||
buildConfiguration = "Release"
|
buildConfiguration = "Profile"
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
savedToolIdentifier = ""
|
savedToolIdentifier = ""
|
||||||
useCustomWorkingDirectory = "NO"
|
useCustomWorkingDirectory = "NO"
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#import <Flutter/Flutter.h>
|
|
||||||
#import <UIKit/UIKit.h>
|
|
||||||
|
|
||||||
@interface AppDelegate : FlutterAppDelegate
|
|
||||||
|
|
||||||
@end
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#include "AppDelegate.h"
|
|
||||||
#include "GeneratedPluginRegistrant.h"
|
|
||||||
|
|
||||||
@implementation AppDelegate
|
|
||||||
|
|
||||||
- (BOOL)application:(UIApplication *)application
|
|
||||||
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
||||||
[GeneratedPluginRegistrant registerWithRegistry:self];
|
|
||||||
// Override point for customization after application launch.
|
|
||||||
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
||||||
13
example/ios/Runner/AppDelegate.swift
Normal file
13
example/ios/Runner/AppDelegate.swift
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import UIKit
|
||||||
|
import Flutter
|
||||||
|
|
||||||
|
@UIApplicationMain
|
||||||
|
@objc class AppDelegate: FlutterAppDelegate {
|
||||||
|
override func application(
|
||||||
|
_ application: UIApplication,
|
||||||
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||||
|
) -> Bool {
|
||||||
|
GeneratedPluginRegistrant.register(with: self)
|
||||||
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -3,7 +3,7 @@
|
|||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>en</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>hello_example</string>
|
<string>example</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
|
|||||||
1
example/ios/Runner/Runner-Bridging-Header.h
Normal file
1
example/ios/Runner/Runner-Bridging-Header.h
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#import "GeneratedPluginRegistrant.h"
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#import <Flutter/Flutter.h>
|
|
||||||
#import <UIKit/UIKit.h>
|
|
||||||
#import "AppDelegate.h"
|
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
|
||||||
@autoreleasepool {
|
|
||||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:country_code_picker/country_code_picker.dart';
|
import 'package:country_code_picker/country_code_picker.dart';
|
||||||
|
import 'package:country_code_picker/country_localizations.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||||
|
|
||||||
void main() => runApp(new MyApp());
|
void main() => runApp(MyApp());
|
||||||
|
|
||||||
class MyApp extends StatefulWidget {
|
class MyApp extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
@@ -17,54 +19,67 @@ class _MyAppState extends State<MyApp> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return new MaterialApp(
|
return new MaterialApp(
|
||||||
home: new Scaffold(
|
supportedLocales: [
|
||||||
appBar: new AppBar(
|
Locale('en'),
|
||||||
title: const Text('CountryPicker Example'),
|
Locale('it'),
|
||||||
),
|
Locale('en'),
|
||||||
body: Center(
|
],
|
||||||
child: Column(
|
localizationsDelegates: [
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
CountryLocalizations.delegate,
|
||||||
children: <Widget>[
|
GlobalMaterialLocalizations.delegate,
|
||||||
CountryCodePicker(
|
GlobalWidgetsLocalizations.delegate,
|
||||||
onChanged: print,
|
],
|
||||||
// Initial selection and favorite can be one of code ('IT') OR dial_code('+39')
|
home: new Scaffold(
|
||||||
initialSelection: 'IT',
|
appBar: new AppBar(
|
||||||
favorite: ['+39', 'FR'],
|
title: const Text('CountryPicker Example'),
|
||||||
//Get the country information relevant to the initial selection
|
),
|
||||||
onInit: (code) => print("${code.name} ${code.dialCode}"),
|
body: Center(
|
||||||
),
|
child: Column(
|
||||||
SizedBox(
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
width: 400,
|
children: <Widget>[
|
||||||
height: 60,
|
CountryCodePicker(
|
||||||
child: Padding(
|
onChanged: print,
|
||||||
padding: const EdgeInsets.all(8.0),
|
// Initial selection and favorite can be one of code ('IT') OR dial_code('+39')
|
||||||
child: CountryCodePicker(
|
initialSelection: 'IT',
|
||||||
onChanged: print,
|
favorite: ['+39', 'FR'],
|
||||||
initialSelection: 'TF',
|
//Get the country information relevant to the initial selection
|
||||||
showCountryOnly: true,
|
onInit: (code) => print("${code.name} ${code.dialCode}"),
|
||||||
showOnlyCountryWhenClosed: true,
|
|
||||||
alignLeft: true,
|
|
||||||
builder: (countryCode) {
|
|
||||||
return Text('${countryCode.code}');
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(
|
|
||||||
width: 400,
|
|
||||||
height: 60,
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(8.0),
|
|
||||||
child: CountryCodePicker(
|
|
||||||
onChanged: print,
|
|
||||||
initialSelection: 'TF',
|
|
||||||
showCountryOnly: true,
|
|
||||||
showOnlyCountryWhenClosed: true,
|
|
||||||
favorite: ['+39', 'FR']),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
)));
|
SizedBox(
|
||||||
|
width: 400,
|
||||||
|
height: 60,
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: CountryCodePicker(
|
||||||
|
onChanged: print,
|
||||||
|
initialSelection: 'TF',
|
||||||
|
showCountryOnly: true,
|
||||||
|
showOnlyCountryWhenClosed: true,
|
||||||
|
alignLeft: true,
|
||||||
|
builder: (countryCode) {
|
||||||
|
return Text('${countryCode.code}');
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
width: 400,
|
||||||
|
height: 60,
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: CountryCodePicker(
|
||||||
|
onChanged: print,
|
||||||
|
initialSelection: 'TF',
|
||||||
|
showCountryOnly: true,
|
||||||
|
showOnlyCountryWhenClosed: true,
|
||||||
|
favorite: ['+39', 'FR'],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,10 +17,8 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
country_code_picker:
|
country_code_picker:
|
||||||
path: ../
|
path: ../
|
||||||
|
flutter_localizations:
|
||||||
# The following adds the Cupertino Icons font to your application.
|
sdk: flutter
|
||||||
# Use with the CupertinoIcons class for iOS style icons.
|
|
||||||
cupertino_icons: ^0.1.2
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
import 'package:country_code_picker/country_codes.dart';
|
||||||
|
import 'package:country_code_picker/country_localizations.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
mixin ToAlias {}
|
mixin ToAlias {}
|
||||||
|
|
||||||
@deprecated
|
@deprecated
|
||||||
@@ -9,20 +13,53 @@ class CountryCode {
|
|||||||
String name;
|
String name;
|
||||||
|
|
||||||
/// the flag of the country
|
/// the flag of the country
|
||||||
String flagUri;
|
final String flagUri;
|
||||||
|
|
||||||
/// the country code (IT,AF..)
|
/// the country code (IT,AF..)
|
||||||
String code;
|
final String code;
|
||||||
|
|
||||||
/// the dial code (+39,+93..)
|
/// the dial code (+39,+93..)
|
||||||
String dialCode;
|
final String dialCode;
|
||||||
|
|
||||||
CountryCode({this.name, this.flagUri, this.code, this.dialCode});
|
CountryCode({
|
||||||
|
this.name,
|
||||||
|
this.flagUri,
|
||||||
|
this.code,
|
||||||
|
this.dialCode,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory CountryCode.fromCode(String isoCode) {
|
||||||
|
final Map<String, String> jsonCode = codes.firstWhere(
|
||||||
|
(code) => code['code'] == isoCode,
|
||||||
|
orElse: () => null,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (jsonCode == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return CountryCode.fromJson(jsonCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
factory CountryCode.fromJson(Map<String, dynamic> json) {
|
||||||
|
return CountryCode(
|
||||||
|
name: json['name'],
|
||||||
|
code: json['code'],
|
||||||
|
dialCode: json['dial_code'],
|
||||||
|
flagUri: 'flags/${json['code'].toLowerCase()}.png',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => "$dialCode";
|
String toString() => "$dialCode";
|
||||||
|
|
||||||
String toLongString() => "$dialCode $name";
|
String toLongString([BuildContext context]) =>
|
||||||
|
"$dialCode ${toCountryStringOnly(context)}";
|
||||||
|
|
||||||
String toCountryStringOnly() => '$name';
|
String toCountryStringOnly([BuildContext context]) {
|
||||||
|
if (context != null) {
|
||||||
|
return CountryLocalizations.of(context)?.translate(code) ?? name;
|
||||||
|
}
|
||||||
|
return '$name';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ export 'country_code.dart';
|
|||||||
|
|
||||||
class CountryCodePicker extends StatefulWidget {
|
class CountryCodePicker extends StatefulWidget {
|
||||||
final ValueChanged<CountryCode> onChanged;
|
final ValueChanged<CountryCode> onChanged;
|
||||||
//Exposed new method to get the initial information of the country
|
|
||||||
final ValueChanged<CountryCode> onInit;
|
final ValueChanged<CountryCode> onInit;
|
||||||
final String initialSelection;
|
final String initialSelection;
|
||||||
final List<String> favorite;
|
final List<String> favorite;
|
||||||
@@ -27,8 +26,8 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
/// aligns the flag and the Text left
|
/// aligns the flag and the Text left
|
||||||
///
|
///
|
||||||
/// additionally this option also fills the available space of the widget.
|
/// additionally this option also fills the available space of the widget.
|
||||||
/// this is especially usefull in combination with [showOnlyCountryWhenClosed],
|
/// this is especially useful in combination with [showOnlyCountryWhenClosed],
|
||||||
/// because longer countrynames are displayed in one line
|
/// because longer country names are displayed in one line
|
||||||
final bool alignLeft;
|
final bool alignLeft;
|
||||||
|
|
||||||
/// shows the flag
|
/// shows the flag
|
||||||
@@ -59,22 +58,14 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
State<StatefulWidget> createState() {
|
State<StatefulWidget> createState() {
|
||||||
List<Map> jsonList = codes;
|
List<Map> jsonList = codes;
|
||||||
|
|
||||||
List<CountryCode> elements = jsonList
|
List<CountryCode> elements =
|
||||||
.map((s) => CountryCode(
|
jsonList.map((json) => CountryCode.fromJson(json)).toList();
|
||||||
name: s['name'],
|
|
||||||
code: s['code'],
|
|
||||||
dialCode: s['dial_code'],
|
|
||||||
flagUri: 'flags/${s['code'].toLowerCase()}.png',
|
|
||||||
))
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
if(countryFilter.length > 0) {
|
if (countryFilter.length > 0) {
|
||||||
elements = elements
|
elements = elements.where((c) => countryFilter.contains(c.code)).toList();
|
||||||
.where((c) => countryFilter.contains(c.code))
|
|
||||||
.toList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new _CountryCodePickerState(elements);
|
return _CountryCodePickerState(elements);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -121,7 +112,7 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
fit: widget.alignLeft ? FlexFit.tight : FlexFit.loose,
|
fit: widget.alignLeft ? FlexFit.tight : FlexFit.loose,
|
||||||
child: Text(
|
child: Text(
|
||||||
widget.showOnlyCountryWhenClosed
|
widget.showOnlyCountryWhenClosed
|
||||||
? selectedItem.toCountryStringOnly()
|
? selectedItem.toCountryStringOnly(context)
|
||||||
: selectedItem.toString(),
|
: selectedItem.toString(),
|
||||||
style: widget.textStyle ?? Theme.of(context).textTheme.button,
|
style: widget.textStyle ?? Theme.of(context).textTheme.button,
|
||||||
),
|
),
|
||||||
@@ -136,11 +127,12 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
@override
|
@override
|
||||||
void didUpdateWidget(CountryCodePicker oldWidget) {
|
void didUpdateWidget(CountryCodePicker oldWidget) {
|
||||||
super.didUpdateWidget(oldWidget);
|
super.didUpdateWidget(oldWidget);
|
||||||
if(oldWidget.initialSelection != widget.initialSelection) {
|
if (oldWidget.initialSelection != widget.initialSelection) {
|
||||||
if (widget.initialSelection != null) {
|
if (widget.initialSelection != null) {
|
||||||
selectedItem = elements.firstWhere(
|
selectedItem = elements.firstWhere(
|
||||||
(e) =>
|
(e) =>
|
||||||
(e.code.toUpperCase() == widget.initialSelection.toUpperCase()) ||
|
(e.code.toUpperCase() ==
|
||||||
|
widget.initialSelection.toUpperCase()) ||
|
||||||
(e.dialCode == widget.initialSelection.toString()),
|
(e.dialCode == widget.initialSelection.toString()),
|
||||||
orElse: () => elements[0]);
|
orElse: () => elements[0]);
|
||||||
} else {
|
} else {
|
||||||
@@ -177,12 +169,15 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
void _showSelectionDialog() {
|
void _showSelectionDialog() {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (_) => SelectionDialog(elements, favoriteElements,
|
builder: (_) => SelectionDialog(
|
||||||
showCountryOnly: widget.showCountryOnly,
|
elements,
|
||||||
emptySearchBuilder: widget.emptySearchBuilder,
|
favoriteElements,
|
||||||
searchDecoration: widget.searchDecoration,
|
showCountryOnly: widget.showCountryOnly,
|
||||||
searchStyle: widget.searchStyle,
|
emptySearchBuilder: widget.emptySearchBuilder,
|
||||||
showFlag: widget.showFlag),
|
searchDecoration: widget.searchDecoration,
|
||||||
|
searchStyle: widget.searchStyle,
|
||||||
|
showFlag: widget.showFlag,
|
||||||
|
),
|
||||||
).then((e) {
|
).then((e) {
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -200,8 +195,8 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _onInit(CountryCode initialData){
|
void _onInit(CountryCode initialData) {
|
||||||
if(widget.onInit != null){
|
if (widget.onInit != null) {
|
||||||
widget.onInit(initialData);
|
widget.onInit(initialData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
63
lib/country_localizations.dart
Normal file
63
lib/country_localizations.dart
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
|
class CountryLocalizations {
|
||||||
|
final Locale locale;
|
||||||
|
|
||||||
|
CountryLocalizations(this.locale);
|
||||||
|
|
||||||
|
static CountryLocalizations of(BuildContext context) {
|
||||||
|
return Localizations.of<CountryLocalizations>(
|
||||||
|
context,
|
||||||
|
CountryLocalizations,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
static const LocalizationsDelegate<CountryLocalizations> delegate =
|
||||||
|
_CountryLocalizationsDelegate();
|
||||||
|
|
||||||
|
Map<String, String> _localizedStrings;
|
||||||
|
|
||||||
|
Future<bool> load() async {
|
||||||
|
print('locale.languageCode: ${locale.languageCode}');
|
||||||
|
String jsonString = await rootBundle.loadString(
|
||||||
|
'packages/country_code_picker/i18n/${locale.languageCode}.json');
|
||||||
|
Map<String, dynamic> jsonMap = json.decode(jsonString);
|
||||||
|
|
||||||
|
_localizedStrings = jsonMap.map((key, value) {
|
||||||
|
return MapEntry(key, value.toString());
|
||||||
|
});
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
String translate(String key) {
|
||||||
|
return _localizedStrings[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class _CountryLocalizationsDelegate
|
||||||
|
extends LocalizationsDelegate<CountryLocalizations> {
|
||||||
|
const _CountryLocalizationsDelegate();
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool isSupported(Locale locale) {
|
||||||
|
return [
|
||||||
|
'en',
|
||||||
|
'it',
|
||||||
|
'fr',
|
||||||
|
].contains(locale.languageCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<CountryLocalizations> load(Locale locale) async {
|
||||||
|
CountryLocalizations localizations = new CountryLocalizations(locale);
|
||||||
|
await localizations.load();
|
||||||
|
return localizations;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool shouldReload(_CountryLocalizationsDelegate old) => false;
|
||||||
|
}
|
||||||
252
lib/i18n/en.json
Normal file
252
lib/i18n/en.json
Normal file
@@ -0,0 +1,252 @@
|
|||||||
|
{
|
||||||
|
"BD": "Bangladesh",
|
||||||
|
"BE": "Belgium",
|
||||||
|
"BF": "Burkina Faso",
|
||||||
|
"BG": "Bulgaria",
|
||||||
|
"BA": "Bosnia and Herzegovina",
|
||||||
|
"BB": "Barbados",
|
||||||
|
"WF": "Wallis and Futuna",
|
||||||
|
"BL": "Saint Barthelemy",
|
||||||
|
"BM": "Bermuda",
|
||||||
|
"BN": "Brunei",
|
||||||
|
"BO": "Bolivia",
|
||||||
|
"BH": "Bahrain",
|
||||||
|
"BI": "Burundi",
|
||||||
|
"BJ": "Benin",
|
||||||
|
"BT": "Bhutan",
|
||||||
|
"JM": "Jamaica",
|
||||||
|
"BV": "Bouvet Island",
|
||||||
|
"BW": "Botswana",
|
||||||
|
"WS": "Samoa",
|
||||||
|
"BQ": "Bonaire, Saint Eustatius and Saba ",
|
||||||
|
"BR": "Brazil",
|
||||||
|
"BS": "Bahamas",
|
||||||
|
"JE": "Jersey",
|
||||||
|
"BY": "Belarus",
|
||||||
|
"BZ": "Belize",
|
||||||
|
"RU": "Russia",
|
||||||
|
"RW": "Rwanda",
|
||||||
|
"RS": "Serbia",
|
||||||
|
"TL": "East Timor",
|
||||||
|
"RE": "Reunion",
|
||||||
|
"TM": "Turkmenistan",
|
||||||
|
"TJ": "Tajikistan",
|
||||||
|
"RO": "Romania",
|
||||||
|
"TK": "Tokelau",
|
||||||
|
"GW": "Guinea-Bissau",
|
||||||
|
"GU": "Guam",
|
||||||
|
"GT": "Guatemala",
|
||||||
|
"GS": "South Georgia and the South Sandwich Islands",
|
||||||
|
"GR": "Greece",
|
||||||
|
"GQ": "Equatorial Guinea",
|
||||||
|
"GP": "Guadeloupe",
|
||||||
|
"JP": "Japan",
|
||||||
|
"GY": "Guyana",
|
||||||
|
"GG": "Guernsey",
|
||||||
|
"GF": "French Guiana",
|
||||||
|
"GE": "Georgia",
|
||||||
|
"GD": "Grenada",
|
||||||
|
"GB": "United Kingdom",
|
||||||
|
"GA": "Gabon",
|
||||||
|
"SV": "El Salvador",
|
||||||
|
"GN": "Guinea",
|
||||||
|
"GM": "Gambia",
|
||||||
|
"GL": "Greenland",
|
||||||
|
"GI": "Gibraltar",
|
||||||
|
"GH": "Ghana",
|
||||||
|
"OM": "Oman",
|
||||||
|
"TN": "Tunisia",
|
||||||
|
"JO": "Jordan",
|
||||||
|
"HR": "Croatia",
|
||||||
|
"HT": "Haiti",
|
||||||
|
"HU": "Hungary",
|
||||||
|
"HK": "Hong Kong",
|
||||||
|
"HN": "Honduras",
|
||||||
|
"HM": "Heard Island and McDonald Islands",
|
||||||
|
"VE": "Venezuela",
|
||||||
|
"PR": "Puerto Rico",
|
||||||
|
"PS": "Palestinian Territory",
|
||||||
|
"PW": "Palau",
|
||||||
|
"PT": "Portugal",
|
||||||
|
"SJ": "Svalbard and Jan Mayen",
|
||||||
|
"PY": "Paraguay",
|
||||||
|
"IQ": "Iraq",
|
||||||
|
"PA": "Panama",
|
||||||
|
"PF": "French Polynesia",
|
||||||
|
"PG": "Papua New Guinea",
|
||||||
|
"PE": "Peru",
|
||||||
|
"PK": "Pakistan",
|
||||||
|
"PH": "Philippines",
|
||||||
|
"PN": "Pitcairn",
|
||||||
|
"PL": "Poland",
|
||||||
|
"PM": "Saint Pierre and Miquelon",
|
||||||
|
"ZM": "Zambia",
|
||||||
|
"EH": "Western Sahara",
|
||||||
|
"EE": "Estonia",
|
||||||
|
"EG": "Egypt",
|
||||||
|
"ZA": "South Africa",
|
||||||
|
"EC": "Ecuador",
|
||||||
|
"IT": "Italy",
|
||||||
|
"VN": "Vietnam",
|
||||||
|
"SB": "Solomon Islands",
|
||||||
|
"ET": "Ethiopia",
|
||||||
|
"SO": "Somalia",
|
||||||
|
"ZW": "Zimbabwe",
|
||||||
|
"SA": "Saudi Arabia",
|
||||||
|
"ES": "Spain",
|
||||||
|
"ER": "Eritrea",
|
||||||
|
"ME": "Montenegro",
|
||||||
|
"MD": "Moldova",
|
||||||
|
"MG": "Madagascar",
|
||||||
|
"MF": "Saint Martin",
|
||||||
|
"MA": "Morocco",
|
||||||
|
"MC": "Monaco",
|
||||||
|
"UZ": "Uzbekistan",
|
||||||
|
"MM": "Myanmar",
|
||||||
|
"ML": "Mali",
|
||||||
|
"MO": "Macao",
|
||||||
|
"MN": "Mongolia",
|
||||||
|
"MH": "Marshall Islands",
|
||||||
|
"MK": "Macedonia",
|
||||||
|
"MU": "Mauritius",
|
||||||
|
"MT": "Malta",
|
||||||
|
"MW": "Malawi",
|
||||||
|
"MV": "Maldives",
|
||||||
|
"MQ": "Martinique",
|
||||||
|
"MP": "Northern Mariana Islands",
|
||||||
|
"MS": "Montserrat",
|
||||||
|
"MR": "Mauritania",
|
||||||
|
"IM": "Isle of Man",
|
||||||
|
"UG": "Uganda",
|
||||||
|
"TZ": "Tanzania",
|
||||||
|
"MY": "Malaysia",
|
||||||
|
"MX": "Mexico",
|
||||||
|
"IL": "Israel",
|
||||||
|
"FR": "France",
|
||||||
|
"IO": "British Indian Ocean Territory",
|
||||||
|
"SH": "Saint Helena",
|
||||||
|
"FI": "Finland",
|
||||||
|
"FJ": "Fiji",
|
||||||
|
"FK": "Falkland Islands",
|
||||||
|
"FM": "Micronesia",
|
||||||
|
"FO": "Faroe Islands",
|
||||||
|
"NI": "Nicaragua",
|
||||||
|
"NL": "Netherlands",
|
||||||
|
"NO": "Norway",
|
||||||
|
"NA": "Namibia",
|
||||||
|
"VU": "Vanuatu",
|
||||||
|
"NC": "New Caledonia",
|
||||||
|
"NE": "Niger",
|
||||||
|
"NF": "Norfolk Island",
|
||||||
|
"NG": "Nigeria",
|
||||||
|
"NZ": "New Zealand",
|
||||||
|
"NP": "Nepal",
|
||||||
|
"NR": "Nauru",
|
||||||
|
"NU": "Niue",
|
||||||
|
"CK": "Cook Islands",
|
||||||
|
"XK": "Kosovo",
|
||||||
|
"CI": "Ivory Coast",
|
||||||
|
"CH": "Switzerland",
|
||||||
|
"CO": "Colombia",
|
||||||
|
"CN": "China",
|
||||||
|
"CM": "Cameroon",
|
||||||
|
"CL": "Chile",
|
||||||
|
"CC": "Cocos Islands",
|
||||||
|
"CA": "Canada",
|
||||||
|
"CG": "Republic of the Congo",
|
||||||
|
"CF": "Central African Republic",
|
||||||
|
"CD": "Democratic Republic of the Congo",
|
||||||
|
"CZ": "Czech Republic",
|
||||||
|
"CY": "Cyprus",
|
||||||
|
"CX": "Christmas Island",
|
||||||
|
"CR": "Costa Rica",
|
||||||
|
"CW": "Curacao",
|
||||||
|
"CV": "Cape Verde",
|
||||||
|
"CU": "Cuba",
|
||||||
|
"SZ": "Swaziland",
|
||||||
|
"SY": "Syria",
|
||||||
|
"SX": "Sint Maarten",
|
||||||
|
"KG": "Kyrgyzstan",
|
||||||
|
"KE": "Kenya",
|
||||||
|
"SS": "South Sudan",
|
||||||
|
"SR": "Suriname",
|
||||||
|
"KI": "Kiribati",
|
||||||
|
"KH": "Cambodia",
|
||||||
|
"KN": "Saint Kitts and Nevis",
|
||||||
|
"KM": "Comoros",
|
||||||
|
"ST": "Sao Tome and Principe",
|
||||||
|
"SK": "Slovakia",
|
||||||
|
"KR": "South Korea",
|
||||||
|
"SI": "Slovenia",
|
||||||
|
"KP": "North Korea",
|
||||||
|
"KW": "Kuwait",
|
||||||
|
"SN": "Senegal",
|
||||||
|
"SM": "San Marino",
|
||||||
|
"SL": "Sierra Leone",
|
||||||
|
"SC": "Seychelles",
|
||||||
|
"KZ": "Kazakhstan",
|
||||||
|
"KY": "Cayman Islands",
|
||||||
|
"SG": "Singapore",
|
||||||
|
"SE": "Sweden",
|
||||||
|
"SD": "Sudan",
|
||||||
|
"DO": "Dominican Republic",
|
||||||
|
"DM": "Dominica",
|
||||||
|
"DJ": "Djibouti",
|
||||||
|
"DK": "Denmark",
|
||||||
|
"VG": "British Virgin Islands",
|
||||||
|
"DE": "Germany",
|
||||||
|
"YE": "Yemen",
|
||||||
|
"DZ": "Algeria",
|
||||||
|
"US": "United States",
|
||||||
|
"UY": "Uruguay",
|
||||||
|
"YT": "Mayotte",
|
||||||
|
"UM": "United States Minor Outlying Islands",
|
||||||
|
"LB": "Lebanon",
|
||||||
|
"LC": "Saint Lucia",
|
||||||
|
"LA": "Laos",
|
||||||
|
"TV": "Tuvalu",
|
||||||
|
"TW": "Taiwan",
|
||||||
|
"TT": "Trinidad and Tobago",
|
||||||
|
"TR": "Turkey",
|
||||||
|
"LK": "Sri Lanka",
|
||||||
|
"LI": "Liechtenstein",
|
||||||
|
"LV": "Latvia",
|
||||||
|
"TO": "Tonga",
|
||||||
|
"LT": "Lithuania",
|
||||||
|
"LU": "Luxembourg",
|
||||||
|
"LR": "Liberia",
|
||||||
|
"LS": "Lesotho",
|
||||||
|
"TH": "Thailand",
|
||||||
|
"TF": "French Southern Territories",
|
||||||
|
"TG": "Togo",
|
||||||
|
"TD": "Chad",
|
||||||
|
"TC": "Turks and Caicos Islands",
|
||||||
|
"LY": "Libya",
|
||||||
|
"VA": "Vatican",
|
||||||
|
"VC": "Saint Vincent and the Grenadines",
|
||||||
|
"AE": "United Arab Emirates",
|
||||||
|
"AD": "Andorra",
|
||||||
|
"AG": "Antigua and Barbuda",
|
||||||
|
"AF": "Afghanistan",
|
||||||
|
"AI": "Anguilla",
|
||||||
|
"VI": "U.S. Virgin Islands",
|
||||||
|
"IS": "Iceland",
|
||||||
|
"IR": "Iran",
|
||||||
|
"AM": "Armenia",
|
||||||
|
"AL": "Albania",
|
||||||
|
"AO": "Angola",
|
||||||
|
"AQ": "Antarctica",
|
||||||
|
"AS": "American Samoa",
|
||||||
|
"AR": "Argentina",
|
||||||
|
"AU": "Australia",
|
||||||
|
"AT": "Austria",
|
||||||
|
"AW": "Aruba",
|
||||||
|
"IN": "India",
|
||||||
|
"AX": "Aland Islands",
|
||||||
|
"AZ": "Azerbaijan",
|
||||||
|
"IE": "Ireland",
|
||||||
|
"ID": "Indonesia",
|
||||||
|
"UA": "Ukraine",
|
||||||
|
"QA": "Qatar",
|
||||||
|
"MZ": "Mozambique"
|
||||||
|
}
|
||||||
257
lib/i18n/fr.json
Normal file
257
lib/i18n/fr.json
Normal file
@@ -0,0 +1,257 @@
|
|||||||
|
{
|
||||||
|
"AF": "Afghanistan",
|
||||||
|
"ZA": "Afrique du Sud",
|
||||||
|
"AL": "Albanie",
|
||||||
|
"DZ": "Algérie",
|
||||||
|
"DE": "Allemagne",
|
||||||
|
"AD": "Andorre",
|
||||||
|
"AO": "Angola",
|
||||||
|
"AI": "Anguilla",
|
||||||
|
"AQ": "Antarctique",
|
||||||
|
"AG": "Antigua-et-Barbuda",
|
||||||
|
"SA": "Arabie saoudite",
|
||||||
|
"AR": "Argentine",
|
||||||
|
"AM": "Arménie",
|
||||||
|
"AW": "Aruba",
|
||||||
|
"AU": "Australie",
|
||||||
|
"AT": "Autriche",
|
||||||
|
"AZ": "Azerbaïdjan",
|
||||||
|
"BS": "Bahamas",
|
||||||
|
"BH": "Bahreïn",
|
||||||
|
"BD": "Bangladesh",
|
||||||
|
"BB": "Barbade",
|
||||||
|
"BE": "Belgique",
|
||||||
|
"BZ": "Belize",
|
||||||
|
"BJ": "Bénin",
|
||||||
|
"BM": "Bermudes",
|
||||||
|
"BT": "Bhoutan",
|
||||||
|
"BY": "Biélorussie",
|
||||||
|
"BO": "Bolivie",
|
||||||
|
"BA": "Bosnie-Herzégovine",
|
||||||
|
"BW": "Botswana",
|
||||||
|
"BR": "Brésil",
|
||||||
|
"BN": "Brunéi Darussalam",
|
||||||
|
"BG": "Bulgarie",
|
||||||
|
"BF": "Burkina Faso",
|
||||||
|
"BI": "Burundi",
|
||||||
|
"KH": "Cambodge",
|
||||||
|
"CM": "Cameroun",
|
||||||
|
"CA": "Canada",
|
||||||
|
"CV": "Cap-Vert",
|
||||||
|
"EA": "Ceuta et Melilla",
|
||||||
|
"CL": "Chili",
|
||||||
|
"CN": "Chine",
|
||||||
|
"CY": "Chypre",
|
||||||
|
"CO": "Colombie",
|
||||||
|
"KM": "Comores",
|
||||||
|
"CG": "Congo-Brazzaville",
|
||||||
|
"CD": "Congo-Kinshasa",
|
||||||
|
"KP": "Corée du Nord",
|
||||||
|
"KR": "Corée du Sud",
|
||||||
|
"CR": "Costa Rica",
|
||||||
|
"CI": "Côte d’Ivoire",
|
||||||
|
"HR": "Croatie",
|
||||||
|
"CU": "Cuba",
|
||||||
|
"CW": "Curaçao",
|
||||||
|
"DK": "Danemark",
|
||||||
|
"DG": "Diego Garcia",
|
||||||
|
"DJ": "Djibouti",
|
||||||
|
"DM": "Dominique",
|
||||||
|
"EG": "Égypte",
|
||||||
|
"AE": "Émirats arabes unis",
|
||||||
|
"EC": "Équateur",
|
||||||
|
"ER": "Érythrée",
|
||||||
|
"ES": "Espagne",
|
||||||
|
"EE": "Estonie",
|
||||||
|
"SZ": "Eswatini",
|
||||||
|
"VA": "État de la Cité du Vatican",
|
||||||
|
"FM": "États fédérés de Micronésie",
|
||||||
|
"US": "États-Unis",
|
||||||
|
"ET": "Éthiopie",
|
||||||
|
"FJ": "Fidji",
|
||||||
|
"FI": "Finlande",
|
||||||
|
"FR": "France",
|
||||||
|
"GA": "Gabon",
|
||||||
|
"GM": "Gambie",
|
||||||
|
"GE": "Géorgie",
|
||||||
|
"GS": "Géorgie du Sud et îles Sandwich du Sud",
|
||||||
|
"GH": "Ghana",
|
||||||
|
"GI": "Gibraltar",
|
||||||
|
"GR": "Grèce",
|
||||||
|
"GD": "Grenade",
|
||||||
|
"GL": "Groenland",
|
||||||
|
"GP": "Guadeloupe",
|
||||||
|
"GU": "Guam",
|
||||||
|
"GT": "Guatemala",
|
||||||
|
"GG": "Guernesey",
|
||||||
|
"GN": "Guinée",
|
||||||
|
"GQ": "Guinée équatoriale",
|
||||||
|
"GW": "Guinée-Bissau",
|
||||||
|
"GY": "Guyana",
|
||||||
|
"GF": "Guyane française",
|
||||||
|
"HT": "Haïti",
|
||||||
|
"HN": "Honduras",
|
||||||
|
"HU": "Hongrie",
|
||||||
|
"CX": "Île Christmas",
|
||||||
|
"AC": "Île de l’Ascension",
|
||||||
|
"IM": "Île de Man",
|
||||||
|
"NF": "Île Norfolk",
|
||||||
|
"AX": "Îles Åland",
|
||||||
|
"KY": "Îles Caïmans",
|
||||||
|
"IC": "Îles Canaries",
|
||||||
|
"CC": "Îles Cocos",
|
||||||
|
"CK": "Îles Cook",
|
||||||
|
"FO": "Îles Féroé",
|
||||||
|
"FK": "Îles Malouines",
|
||||||
|
"MP": "Îles Mariannes du Nord",
|
||||||
|
"MH": "Îles Marshall",
|
||||||
|
"UM": "Îles mineures éloignées des États-Unis",
|
||||||
|
"PN": "Îles Pitcairn",
|
||||||
|
"SB": "Îles Salomon",
|
||||||
|
"TC": "Îles Turques-et-Caïques",
|
||||||
|
"VG": "Îles Vierges britanniques",
|
||||||
|
"VI": "Îles Vierges des États-Unis",
|
||||||
|
"IN": "Inde",
|
||||||
|
"ID": "Indonésie",
|
||||||
|
"IQ": "Irak",
|
||||||
|
"IR": "Iran",
|
||||||
|
"IE": "Irlande",
|
||||||
|
"IS": "Islande",
|
||||||
|
"IL": "Israël",
|
||||||
|
"IT": "Italie",
|
||||||
|
"JM": "Jamaïque",
|
||||||
|
"JP": "Japon",
|
||||||
|
"JE": "Jersey",
|
||||||
|
"JO": "Jordanie",
|
||||||
|
"KZ": "Kazakhstan",
|
||||||
|
"KE": "Kenya",
|
||||||
|
"KG": "Kirghizistan",
|
||||||
|
"KI": "Kiribati",
|
||||||
|
"XK": "Kosovo",
|
||||||
|
"KW": "Koweït",
|
||||||
|
"RE": "La Réunion",
|
||||||
|
"LA": "Laos",
|
||||||
|
"LS": "Lesotho",
|
||||||
|
"LV": "Lettonie",
|
||||||
|
"LB": "Liban",
|
||||||
|
"LR": "Libéria",
|
||||||
|
"LY": "Libye",
|
||||||
|
"LI": "Liechtenstein",
|
||||||
|
"LT": "Lituanie",
|
||||||
|
"LU": "Luxembourg",
|
||||||
|
"MK": "Macédoine",
|
||||||
|
"MG": "Madagascar",
|
||||||
|
"MY": "Malaisie",
|
||||||
|
"MW": "Malawi",
|
||||||
|
"MV": "Maldives",
|
||||||
|
"ML": "Mali",
|
||||||
|
"MT": "Malte",
|
||||||
|
"MA": "Maroc",
|
||||||
|
"MQ": "Martinique",
|
||||||
|
"MU": "Maurice",
|
||||||
|
"MR": "Mauritanie",
|
||||||
|
"YT": "Mayotte",
|
||||||
|
"MX": "Mexique",
|
||||||
|
"MD": "Moldavie",
|
||||||
|
"MC": "Monaco",
|
||||||
|
"MN": "Mongolie",
|
||||||
|
"ME": "Monténégro",
|
||||||
|
"MS": "Montserrat",
|
||||||
|
"MZ": "Mozambique",
|
||||||
|
"MM": "Myanmar (Birmanie)",
|
||||||
|
"NA": "Namibie",
|
||||||
|
"NR": "Nauru",
|
||||||
|
"NP": "Népal",
|
||||||
|
"NI": "Nicaragua",
|
||||||
|
"NE": "Niger",
|
||||||
|
"NG": "Nigéria",
|
||||||
|
"NU": "Niue",
|
||||||
|
"NO": "Norvège",
|
||||||
|
"NC": "Nouvelle-Calédonie",
|
||||||
|
"NZ": "Nouvelle-Zélande",
|
||||||
|
"OM": "Oman",
|
||||||
|
"UG": "Ouganda",
|
||||||
|
"UZ": "Ouzbékistan",
|
||||||
|
"PK": "Pakistan",
|
||||||
|
"PW": "Palaos",
|
||||||
|
"PA": "Panama",
|
||||||
|
"PG": "Papouasie-Nouvelle-Guinée",
|
||||||
|
"PY": "Paraguay",
|
||||||
|
"NL": "Pays-Bas",
|
||||||
|
"BQ": "Pays-Bas caribéens",
|
||||||
|
"PE": "Pérou",
|
||||||
|
"PH": "Philippines",
|
||||||
|
"PL": "Pologne",
|
||||||
|
"PF": "Polynésie française",
|
||||||
|
"PR": "Porto Rico",
|
||||||
|
"PT": "Portugal",
|
||||||
|
"XA": "pseudo-accents",
|
||||||
|
"XB": "pseudo-bidi",
|
||||||
|
"QA": "Qatar",
|
||||||
|
"HK": "R.A.S. chinoise de Hong Kong",
|
||||||
|
"MO": "R.A.S. chinoise de Macao",
|
||||||
|
"CF": "République centrafricaine",
|
||||||
|
"DO": "République dominicaine",
|
||||||
|
"RO": "Roumanie",
|
||||||
|
"GB": "Royaume-Uni",
|
||||||
|
"RU": "Russie",
|
||||||
|
"RW": "Rwanda",
|
||||||
|
"EH": "Sahara occidental",
|
||||||
|
"BL": "Saint-Barthélemy",
|
||||||
|
"KN": "Saint-Christophe-et-Niévès",
|
||||||
|
"SM": "Saint-Marin",
|
||||||
|
"MF": "Saint-Martin",
|
||||||
|
"SX": "Saint-Martin (partie néerlandaise)",
|
||||||
|
"PM": "Saint-Pierre-et-Miquelon",
|
||||||
|
"VC": "Saint-Vincent-et-les-Grenadines",
|
||||||
|
"SH": "Sainte-Hélène",
|
||||||
|
"LC": "Sainte-Lucie",
|
||||||
|
"SV": "Salvador",
|
||||||
|
"WS": "Samoa",
|
||||||
|
"AS": "Samoa américaines",
|
||||||
|
"ST": "Sao Tomé-et-Principe",
|
||||||
|
"SN": "Sénégal",
|
||||||
|
"RS": "Serbie",
|
||||||
|
"SC": "Seychelles",
|
||||||
|
"SL": "Sierra Leone",
|
||||||
|
"SG": "Singapour",
|
||||||
|
"SK": "Slovaquie",
|
||||||
|
"SI": "Slovénie",
|
||||||
|
"SO": "Somalie",
|
||||||
|
"SD": "Soudan",
|
||||||
|
"SS": "Soudan du Sud",
|
||||||
|
"LK": "Sri Lanka",
|
||||||
|
"SE": "Suède",
|
||||||
|
"CH": "Suisse",
|
||||||
|
"SR": "Suriname",
|
||||||
|
"SJ": "Svalbard et Jan Mayen",
|
||||||
|
"SY": "Syrie",
|
||||||
|
"TJ": "Tadjikistan",
|
||||||
|
"TW": "Taïwan",
|
||||||
|
"TZ": "Tanzanie",
|
||||||
|
"TD": "Tchad",
|
||||||
|
"CZ": "Tchéquie",
|
||||||
|
"TF": "Terres australes françaises",
|
||||||
|
"IO": "Territoire britannique de l’océan Indien",
|
||||||
|
"PS": "Territoires palestiniens",
|
||||||
|
"TH": "Thaïlande",
|
||||||
|
"TL": "Timor oriental",
|
||||||
|
"TG": "Togo",
|
||||||
|
"TK": "Tokelau",
|
||||||
|
"TO": "Tonga",
|
||||||
|
"TT": "Trinité-et-Tobago",
|
||||||
|
"TA": "Tristan da Cunha",
|
||||||
|
"TN": "Tunisie",
|
||||||
|
"TM": "Turkménistan",
|
||||||
|
"TR": "Turquie",
|
||||||
|
"TV": "Tuvalu",
|
||||||
|
"UA": "Ukraine",
|
||||||
|
"UY": "Uruguay",
|
||||||
|
"VU": "Vanuatu",
|
||||||
|
"VE": "Venezuela",
|
||||||
|
"VN": "Vietnam",
|
||||||
|
"WF": "Wallis-et-Futuna",
|
||||||
|
"YE": "Yémen",
|
||||||
|
"ZM": "Zambie",
|
||||||
|
"ZW": "Zimbabwe"
|
||||||
|
}
|
||||||
257
lib/i18n/it.json
Normal file
257
lib/i18n/it.json
Normal file
@@ -0,0 +1,257 @@
|
|||||||
|
{
|
||||||
|
"AF": "Afghanistan",
|
||||||
|
"AL": "Albania",
|
||||||
|
"DZ": "Algeria",
|
||||||
|
"UM": "Altre isole americane del Pacifico",
|
||||||
|
"AD": "Andorra",
|
||||||
|
"AO": "Angola",
|
||||||
|
"AI": "Anguilla",
|
||||||
|
"AQ": "Antartide",
|
||||||
|
"AG": "Antigua e Barbuda",
|
||||||
|
"SA": "Arabia Saudita",
|
||||||
|
"AR": "Argentina",
|
||||||
|
"AM": "Armenia",
|
||||||
|
"AW": "Aruba",
|
||||||
|
"AU": "Australia",
|
||||||
|
"AT": "Austria",
|
||||||
|
"AZ": "Azerbaigian",
|
||||||
|
"BS": "Bahamas",
|
||||||
|
"BH": "Bahrein",
|
||||||
|
"BD": "Bangladesh",
|
||||||
|
"BB": "Barbados",
|
||||||
|
"BE": "Belgio",
|
||||||
|
"BZ": "Belize",
|
||||||
|
"BJ": "Benin",
|
||||||
|
"BM": "Bermuda",
|
||||||
|
"BT": "Bhutan",
|
||||||
|
"BY": "Bielorussia",
|
||||||
|
"BO": "Bolivia",
|
||||||
|
"BA": "Bosnia ed Erzegovina",
|
||||||
|
"BW": "Botswana",
|
||||||
|
"BR": "Brasile",
|
||||||
|
"BN": "Brunei",
|
||||||
|
"BG": "Bulgaria",
|
||||||
|
"BF": "Burkina Faso",
|
||||||
|
"BI": "Burundi",
|
||||||
|
"KH": "Cambogia",
|
||||||
|
"CM": "Camerun",
|
||||||
|
"CA": "Canada",
|
||||||
|
"CV": "Capo Verde",
|
||||||
|
"BQ": "Caraibi olandesi",
|
||||||
|
"CZ": "Cechia",
|
||||||
|
"EA": "Ceuta e Melilla",
|
||||||
|
"TD": "Ciad",
|
||||||
|
"CL": "Cile",
|
||||||
|
"CN": "Cina",
|
||||||
|
"CY": "Cipro",
|
||||||
|
"VA": "Città del Vaticano",
|
||||||
|
"CO": "Colombia",
|
||||||
|
"KM": "Comore",
|
||||||
|
"CD": "Congo - Kinshasa",
|
||||||
|
"CG": "Congo-Brazzaville",
|
||||||
|
"KP": "Corea del Nord",
|
||||||
|
"KR": "Corea del Sud",
|
||||||
|
"CI": "Costa d’Avorio",
|
||||||
|
"CR": "Costa Rica",
|
||||||
|
"HR": "Croazia",
|
||||||
|
"CU": "Cuba",
|
||||||
|
"CW": "Curaçao",
|
||||||
|
"DK": "Danimarca",
|
||||||
|
"DG": "Diego Garcia",
|
||||||
|
"DM": "Dominica",
|
||||||
|
"EC": "Ecuador",
|
||||||
|
"EG": "Egitto",
|
||||||
|
"SV": "El Salvador",
|
||||||
|
"AE": "Emirati Arabi Uniti",
|
||||||
|
"ER": "Eritrea",
|
||||||
|
"EE": "Estonia",
|
||||||
|
"ET": "Etiopia",
|
||||||
|
"FJ": "Figi",
|
||||||
|
"PH": "Filippine",
|
||||||
|
"FI": "Finlandia",
|
||||||
|
"FR": "Francia",
|
||||||
|
"GA": "Gabon",
|
||||||
|
"GM": "Gambia",
|
||||||
|
"GE": "Georgia",
|
||||||
|
"GS": "Georgia del Sud e Sandwich australi",
|
||||||
|
"DE": "Germania",
|
||||||
|
"GH": "Ghana",
|
||||||
|
"JM": "Giamaica",
|
||||||
|
"JP": "Giappone",
|
||||||
|
"GI": "Gibilterra",
|
||||||
|
"DJ": "Gibuti",
|
||||||
|
"JO": "Giordania",
|
||||||
|
"GR": "Grecia",
|
||||||
|
"GD": "Grenada",
|
||||||
|
"GL": "Groenlandia",
|
||||||
|
"GP": "Guadalupa",
|
||||||
|
"GU": "Guam",
|
||||||
|
"GT": "Guatemala",
|
||||||
|
"GG": "Guernsey",
|
||||||
|
"GN": "Guinea",
|
||||||
|
"GQ": "Guinea Equatoriale",
|
||||||
|
"GW": "Guinea-Bissau",
|
||||||
|
"GY": "Guyana",
|
||||||
|
"GF": "Guyana francese",
|
||||||
|
"HT": "Haiti",
|
||||||
|
"HN": "Honduras",
|
||||||
|
"IN": "India",
|
||||||
|
"ID": "Indonesia",
|
||||||
|
"IR": "Iran",
|
||||||
|
"IQ": "Iraq",
|
||||||
|
"IE": "Irlanda",
|
||||||
|
"IS": "Islanda",
|
||||||
|
"AC": "Isola Ascensione",
|
||||||
|
"CX": "Isola Christmas",
|
||||||
|
"IM": "Isola di Man",
|
||||||
|
"NF": "Isola Norfolk",
|
||||||
|
"AX": "Isole Åland",
|
||||||
|
"IC": "Isole Canarie",
|
||||||
|
"KY": "Isole Cayman",
|
||||||
|
"CC": "Isole Cocos (Keeling)",
|
||||||
|
"CK": "Isole Cook",
|
||||||
|
"FO": "Isole Fær Øer",
|
||||||
|
"FK": "Isole Falkland",
|
||||||
|
"MP": "Isole Marianne settentrionali",
|
||||||
|
"MH": "Isole Marshall",
|
||||||
|
"PN": "Isole Pitcairn",
|
||||||
|
"SB": "Isole Salomone",
|
||||||
|
"TC": "Isole Turks e Caicos",
|
||||||
|
"VI": "Isole Vergini Americane",
|
||||||
|
"VG": "Isole Vergini Britanniche",
|
||||||
|
"IL": "Israele",
|
||||||
|
"IT": "Italia",
|
||||||
|
"JE": "Jersey",
|
||||||
|
"KZ": "Kazakistan",
|
||||||
|
"KE": "Kenya",
|
||||||
|
"KG": "Kirghizistan",
|
||||||
|
"KI": "Kiribati",
|
||||||
|
"XK": "Kosovo",
|
||||||
|
"KW": "Kuwait",
|
||||||
|
"LA": "Laos",
|
||||||
|
"LS": "Lesotho",
|
||||||
|
"LV": "Lettonia",
|
||||||
|
"LB": "Libano",
|
||||||
|
"LR": "Liberia",
|
||||||
|
"LY": "Libia",
|
||||||
|
"LI": "Liechtenstein",
|
||||||
|
"LT": "Lituania",
|
||||||
|
"LU": "Lussemburgo",
|
||||||
|
"MK": "Macedonia del Nord",
|
||||||
|
"MG": "Madagascar",
|
||||||
|
"MW": "Malawi",
|
||||||
|
"MY": "Malaysia",
|
||||||
|
"MV": "Maldive",
|
||||||
|
"ML": "Mali",
|
||||||
|
"MT": "Malta",
|
||||||
|
"MA": "Marocco",
|
||||||
|
"MQ": "Martinica",
|
||||||
|
"MR": "Mauritania",
|
||||||
|
"MU": "Mauritius",
|
||||||
|
"YT": "Mayotte",
|
||||||
|
"MX": "Messico",
|
||||||
|
"FM": "Micronesia",
|
||||||
|
"MD": "Moldavia",
|
||||||
|
"MC": "Monaco",
|
||||||
|
"MN": "Mongolia",
|
||||||
|
"ME": "Montenegro",
|
||||||
|
"MS": "Montserrat",
|
||||||
|
"MZ": "Mozambico",
|
||||||
|
"MM": "Myanmar (Birmania)",
|
||||||
|
"NA": "Namibia",
|
||||||
|
"NR": "Nauru",
|
||||||
|
"NP": "Nepal",
|
||||||
|
"NI": "Nicaragua",
|
||||||
|
"NE": "Niger",
|
||||||
|
"NG": "Nigeria",
|
||||||
|
"NU": "Niue",
|
||||||
|
"NO": "Norvegia",
|
||||||
|
"NC": "Nuova Caledonia",
|
||||||
|
"NZ": "Nuova Zelanda",
|
||||||
|
"OM": "Oman",
|
||||||
|
"NL": "Paesi Bassi",
|
||||||
|
"PK": "Pakistan",
|
||||||
|
"PW": "Palau",
|
||||||
|
"PA": "Panamá",
|
||||||
|
"PG": "Papua Nuova Guinea",
|
||||||
|
"PY": "Paraguay",
|
||||||
|
"PE": "Perù",
|
||||||
|
"PF": "Polinesia francese",
|
||||||
|
"PL": "Polonia",
|
||||||
|
"PT": "Portogallo",
|
||||||
|
"PR": "Portorico",
|
||||||
|
"XA": "pseudo-accenti",
|
||||||
|
"XB": "pseudo-bidi",
|
||||||
|
"QA": "Qatar",
|
||||||
|
"HK": "RAS di Hong Kong",
|
||||||
|
"MO": "RAS di Macao",
|
||||||
|
"GB": "Regno Unito",
|
||||||
|
"CF": "Repubblica Centrafricana",
|
||||||
|
"DO": "Repubblica Dominicana",
|
||||||
|
"RE": "Riunione",
|
||||||
|
"RO": "Romania",
|
||||||
|
"RW": "Ruanda",
|
||||||
|
"RU": "Russia",
|
||||||
|
"EH": "Sahara occidentale",
|
||||||
|
"KN": "Saint Kitts e Nevis",
|
||||||
|
"LC": "Saint Lucia",
|
||||||
|
"MF": "Saint Martin",
|
||||||
|
"VC": "Saint Vincent e Grenadine",
|
||||||
|
"BL": "Saint-Barthélemy",
|
||||||
|
"PM": "Saint-Pierre e Miquelon",
|
||||||
|
"WS": "Samoa",
|
||||||
|
"AS": "Samoa americane",
|
||||||
|
"SM": "San Marino",
|
||||||
|
"SH": "Sant’Elena",
|
||||||
|
"ST": "São Tomé e Príncipe",
|
||||||
|
"SN": "Senegal",
|
||||||
|
"RS": "Serbia",
|
||||||
|
"SC": "Seychelles",
|
||||||
|
"SL": "Sierra Leone",
|
||||||
|
"SG": "Singapore",
|
||||||
|
"SX": "Sint Maarten",
|
||||||
|
"SY": "Siria",
|
||||||
|
"SK": "Slovacchia",
|
||||||
|
"SI": "Slovenia",
|
||||||
|
"SO": "Somalia",
|
||||||
|
"ES": "Spagna",
|
||||||
|
"LK": "Sri Lanka",
|
||||||
|
"US": "Stati Uniti",
|
||||||
|
"SS": "Sud Sudan",
|
||||||
|
"ZA": "Sudafrica",
|
||||||
|
"SD": "Sudan",
|
||||||
|
"SR": "Suriname",
|
||||||
|
"SJ": "Svalbard e Jan Mayen",
|
||||||
|
"SE": "Svezia",
|
||||||
|
"CH": "Svizzera",
|
||||||
|
"SZ": "Swaziland",
|
||||||
|
"TJ": "Tagikistan",
|
||||||
|
"TW": "Taiwan",
|
||||||
|
"TZ": "Tanzania",
|
||||||
|
"TF": "Terre australi francesi",
|
||||||
|
"PS": "Territori palestinesi",
|
||||||
|
"IO": "Territorio britannico dell’Oceano Indiano",
|
||||||
|
"TH": "Thailandia",
|
||||||
|
"TL": "Timor Est",
|
||||||
|
"TG": "Togo",
|
||||||
|
"TK": "Tokelau",
|
||||||
|
"TO": "Tonga",
|
||||||
|
"TT": "Trinidad e Tobago",
|
||||||
|
"TA": "Tristan da Cunha",
|
||||||
|
"TN": "Tunisia",
|
||||||
|
"TR": "Turchia",
|
||||||
|
"TM": "Turkmenistan",
|
||||||
|
"TV": "Tuvalu",
|
||||||
|
"UA": "Ucraina",
|
||||||
|
"UG": "Uganda",
|
||||||
|
"HU": "Ungheria",
|
||||||
|
"UY": "Uruguay",
|
||||||
|
"UZ": "Uzbekistan",
|
||||||
|
"VU": "Vanuatu",
|
||||||
|
"VE": "Venezuela",
|
||||||
|
"VN": "Vietnam",
|
||||||
|
"WF": "Wallis e Futuna",
|
||||||
|
"YE": "Yemen",
|
||||||
|
"ZM": "Zambia",
|
||||||
|
"ZW": "Zimbabwe"
|
||||||
|
}
|
||||||
@@ -13,17 +13,17 @@ class SelectionDialog extends StatefulWidget {
|
|||||||
/// elements passed as favorite
|
/// elements passed as favorite
|
||||||
final List<CountryCode> favoriteElements;
|
final List<CountryCode> favoriteElements;
|
||||||
|
|
||||||
SelectionDialog(this.elements, this.favoriteElements, {
|
SelectionDialog(this.elements, this.favoriteElements,
|
||||||
Key key,
|
{Key key,
|
||||||
this.showCountryOnly,
|
this.showCountryOnly,
|
||||||
this.emptySearchBuilder,
|
this.emptySearchBuilder,
|
||||||
InputDecoration searchDecoration = const InputDecoration(),
|
InputDecoration searchDecoration = const InputDecoration(),
|
||||||
this.searchStyle,
|
this.searchStyle,
|
||||||
this.showFlag
|
this.showFlag})
|
||||||
}) :
|
: assert(searchDecoration != null, 'searchDecoration must not be null!'),
|
||||||
assert(searchDecoration != null, 'searchDecoration must not be null!'),
|
this.searchDecoration =
|
||||||
this.searchDecoration = searchDecoration.copyWith(prefixIcon: Icon(Icons.search)),
|
searchDecoration.copyWith(prefixIcon: Icon(Icons.search)),
|
||||||
super(key: key);
|
super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<StatefulWidget> createState() => _SelectionDialogState();
|
State<StatefulWidget> createState() => _SelectionDialogState();
|
||||||
@@ -35,48 +35,51 @@ class _SelectionDialogState extends State<SelectionDialog> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => SimpleDialog(
|
Widget build(BuildContext context) => SimpleDialog(
|
||||||
title: Column(
|
title: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
TextField(
|
TextField(
|
||||||
style: widget.searchStyle,
|
style: widget.searchStyle,
|
||||||
decoration: widget.searchDecoration,
|
decoration: widget.searchDecoration,
|
||||||
onChanged: _filterElements,
|
onChanged: _filterElements,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
height: MediaQuery.of(context).size.height,
|
height: MediaQuery.of(context).size.height * 0.7,
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: [
|
children: [
|
||||||
widget.favoriteElements.isEmpty
|
widget.favoriteElements.isEmpty
|
||||||
? const DecoratedBox(decoration: BoxDecoration())
|
? const DecoratedBox(decoration: BoxDecoration())
|
||||||
: Column(
|
: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[]
|
children: [
|
||||||
..addAll(widget.favoriteElements
|
...widget.favoriteElements.map(
|
||||||
.map(
|
(f) => SimpleDialogOption(
|
||||||
(f) => SimpleDialogOption(
|
child: _buildOption(f),
|
||||||
child: _buildOption(f),
|
onPressed: () {
|
||||||
onPressed: () {
|
_selectItem(f);
|
||||||
_selectItem(f);
|
},
|
||||||
},
|
),
|
||||||
),
|
),
|
||||||
)
|
const Divider(),
|
||||||
.toList())
|
],
|
||||||
..add(const Divider())),
|
),
|
||||||
]..addAll(filteredElements.isEmpty
|
if (filteredElements.isEmpty)
|
||||||
? [_buildEmptySearchWidget(context)]
|
_buildEmptySearchWidget(context)
|
||||||
: filteredElements.map(
|
else
|
||||||
|
...filteredElements.map(
|
||||||
(e) => SimpleDialogOption(
|
(e) => SimpleDialogOption(
|
||||||
key: Key(e.toLongString()),
|
key: Key(e.toLongString()),
|
||||||
child: _buildOption(e),
|
child: _buildOption(e),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_selectItem(e);
|
_selectItem(e);
|
||||||
},
|
},
|
||||||
)))
|
),
|
||||||
)
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@@ -87,22 +90,23 @@ class _SelectionDialogState extends State<SelectionDialog> {
|
|||||||
child: Flex(
|
child: Flex(
|
||||||
direction: Axis.horizontal,
|
direction: Axis.horizontal,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
widget.showFlag ? Flexible(
|
if (widget.showFlag)
|
||||||
child: Padding(
|
Flexible(
|
||||||
padding: const EdgeInsets.only(right: 16.0),
|
child: Padding(
|
||||||
child: Image.asset(
|
padding: const EdgeInsets.only(right: 16.0),
|
||||||
e.flagUri,
|
child: Image.asset(
|
||||||
package: 'country_code_picker',
|
e.flagUri,
|
||||||
width: 32.0,
|
package: 'country_code_picker',
|
||||||
|
width: 32.0,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
) : Container(),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 4,
|
flex: 4,
|
||||||
child: Text(
|
child: Text(
|
||||||
widget.showCountryOnly
|
widget.showCountryOnly
|
||||||
? e.toCountryStringOnly()
|
? e.toCountryStringOnly(context)
|
||||||
: e.toLongString(),
|
: e.toLongString(context),
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -116,7 +120,9 @@ class _SelectionDialogState extends State<SelectionDialog> {
|
|||||||
return widget.emptySearchBuilder(context);
|
return widget.emptySearchBuilder(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Center(child: Text('No Country Found'));
|
return Center(
|
||||||
|
child: Text('No country found'),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
name: country_code_picker
|
name: country_code_picker
|
||||||
description: A flutter package for showing a country code selector. In addition it gives the possibility to select a list of favorites countries, as well as to search using a simple searchbox
|
description: A flutter package for showing a country code selector. In addition it gives the possibility to select a list of favorites countries, as well as to search using a simple searchbox
|
||||||
version: 1.2.4
|
version: 1.3.0
|
||||||
homepage: https://github.com/Salvatore-Giordano/CountryCodePicker
|
homepage: https://github.com/Salvatore-Giordano/CountryCodePicker
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=1.19.0 <3.0.0"
|
sdk: ">=2.2.2 <3.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
@@ -13,3 +13,6 @@ dependencies:
|
|||||||
flutter:
|
flutter:
|
||||||
assets:
|
assets:
|
||||||
- flags/
|
- flags/
|
||||||
|
- packages/country_code_picker/i18n/en.json
|
||||||
|
- packages/country_code_picker/i18n/it.json
|
||||||
|
- packages/country_code_picker/i18n/fr.json
|
||||||
|
|||||||
Reference in New Issue
Block a user