From 49143d8c974d0f5a96edebf13a4abd7a174d8b78 Mon Sep 17 00:00:00 2001 From: Nilashish Roy Date: Fri, 7 Feb 2025 23:43:41 +0600 Subject: [PATCH] Added Proper documentation in Readme.md File. --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 22a3d1c..14bdce4 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,9 @@ void _onCountryChange(CountryCode countryCode) { ### i18n -Just add the `CountryLocalizations.delegate` in the list of your app delegates +Just add the `CountryLocalizations.delegate` in the list of your app delegates +### Default Usage (Localization Enabled) ```dart return new MaterialApp( supportedLocales: [ @@ -140,9 +141,19 @@ Just add the `CountryLocalizations.delegate` in the list of your app delegates ], ``` +### Force English (Localization Disabled) +```dart + return new MaterialApp( + localizationsDelegates: [ + CountryLocalizations.delegate(enableLocalization: false), + GlobalMaterialLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ], +``` + ## Customization -Here is a list of properties available to customize your widget: +Here is a list of properties available to customizeccc your widget: | Name | Type | Description | |-----|-----|------| @@ -198,7 +209,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d Chandra Abdul Fattah
Chandra Abdul Fattah

🚇 💻 Salvatore Giordano
Salvatore Giordano

🚇 💻 - + Nilashish Roy
Nilashish Roy

🚇 💻 +