get_country_code_by_name 0.0.1 get_country_code_by_name: ^0.0.1 copied to clipboard
A Flutter package to retrieve country codes by passing the country name.
Certainly! Here's a README.md template you can use for your package:
# get_country_code_by_name
A Flutter package to retrieve country codes by passing the country name.
## Installation
Add `get_country_code_by_name` to your `pubspec.yaml` file:
```yaml
dependencies:
flutter:
sdk: flutter
get_country_code_by_name: ^1.0.0
Install the package by running:
flutter pub get
Import the package in your Dart code:
import 'package:get_country_code_by_name/country_code_resolver.dart';
Usage #
You can use the CountryCodeResolver
class to retrieve country codes by passing the country name.
void main() {
// Example usage
print(CountryCodeResolver.getCountryCode('egypt')); // Output: eg
}
Features #
- Retrieve country codes by country name.
Issues and Feedback #
Please file any issues, feedback, or feature requests in the issue tracker.
License #
This project is licensed under the terms of the MIT license. See the LICENSE file for details.
About #
This Flutter package is developed and maintained by Mohamed Hekal.
- GitHub: mohamedhekal
- Email: your-email@example.com
- LinkedIn: Mohamed Hekal