Merge remote-tracking branch 'origin/main'

# Conflicts:
#	CHANGELOG.md
#	example/lib/main.dart
#	example/pubspec.yaml
#	ios/Flutter/Generated.xcconfig
#	ios/Flutter/flutter_export_environment.sh
#	pubspec.yaml
This commit is contained in:
Nilashish Roy
2024-12-11 20:48:33 +06:00
13 changed files with 343 additions and 1138 deletions

View File

@@ -2,12 +2,11 @@ import 'package:country_code_picker/country_code_picker.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
void main() => runApp( const MyApp());
void main() => runApp(const MyApp());
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
MyAppState createState() => MyAppState();
}
@@ -108,10 +107,12 @@ class MyAppState extends State<MyApp> {
favorite: const ['+39', 'FR'],
countryFilter: const ['IT', 'FR'],
showFlagDialog: false,
//You can set the margin between the flag and the country name to your taste.
margin: const EdgeInsets.symmetric(horizontal: 6),
comparator: (a, b) => b.name!.compareTo(a.name!),
//Get the country information relevant to the initial selection
onInit: (code) => debugPrint(
"on init ${code!.name} ${code.dialCode} ${code.name}"),
"on init ${code?.name} ${code?.dialCode} ${code?.name}"),
),
CountryCodePicker(
onChanged: print,

View File

@@ -11,7 +11,7 @@ version: 1.0.0+1
publish_to: none
environment:
sdk: '>=3.3.0 <4.0.0'
sdk: '>=2.17.0 <4.0.0'
dependencies:
flutter: