Skip to content

Commit

Permalink
9.0.0 (#216)
Browse files Browse the repository at this point in the history
* fix: disable country chip when field is disabled (#202)

* fix: disable country chip when field is disabled

* fixup! fix: disable country chip when field is disabled

* fixup! fixup! fix: disable country chip when field is disabled

* add ku and ckb translations (#209)

* fix: copy/paste wasn't possible due to context menu builder being passed as null (#198)

Co-authored-by: Mattias Siø Fjellvang <mattias@doubble.dk>

* bugfix: close keyboard on scroll (#162)

* Supported safe area in bottom sheet of country selector (#153)

Co-authored-by: Serge Shkurko <shkurko@thekey.space>

* update intl to 18.0 (#156)

* 7.0.6

* Fix search cursor color and initial bottom sheet height (#157)

* downgrade intl

* fix cursor color

* fix panel height

* enlarge prefix hit area

* added cursor fix

* revert changes from incorrect pr

* feature: allow searching by ISO code

* feature: search by submitting form

* bugfix: fixed issue where it would double pop the route if submitting form and both lists had results

* feature: search by submitting form (#160)

* feature: search by submitting form

* bugfix: fixed issue where it would double pop the route if submitting form and both lists had results

* feature: allow searching by ISO code (#161)

* bugfix: hide the keyboard when scrolling list, so it doesn't overlap

* feature: use autofill hints for search input

* feature: auto-submit when autofilling/pasting country

* refactor: move change handler into seperate method

* refactor: fixed deprecated window usage

* fix: copy/paste wasn't possible due to context menu builder being passed as null

* fix: remove listener on dispose

---------

Co-authored-by: Serge Shkurko <sergeshkurko@outlook.com>
Co-authored-by: Serge Shkurko <shkurko@thekey.space>
Co-authored-by: zitob9 <elias.housni@gmail.com>
Co-authored-by: cedvdb <cedvandenbosch@gmail.com>
Co-authored-by: cizmarf <37090294+cizmarf@users.noreply.github.com>
Co-authored-by: Mattias Siø Fjellvang <mattias@doubble.dk>

* feature: autofill country (#163)

* Supported safe area in bottom sheet of country selector (#153)

Co-authored-by: Serge Shkurko <shkurko@thekey.space>

* update intl to 18.0 (#156)

* 7.0.6

* Fix search cursor color and initial bottom sheet height (#157)

* downgrade intl

* fix cursor color

* fix panel height

* enlarge prefix hit area

* added cursor fix

* revert changes from incorrect pr

* feature: allow searching by ISO code

* feature: search by submitting form

* bugfix: fixed issue where it would double pop the route if submitting form and both lists had results

* feature: search by submitting form (#160)

* feature: search by submitting form

* bugfix: fixed issue where it would double pop the route if submitting form and both lists had results

* feature: allow searching by ISO code (#161)

* bugfix: hide the keyboard when scrolling list, so it doesn't overlap

* feature: use autofill hints for search input

* feature: auto-submit when autofilling/pasting country

* refactor: move change handler into seperate method

* refactor: fixed deprecated window usage

* fix: copy/paste wasn't possible due to context menu builder being passed as null

* fix: remove listener on dispose

---------

Co-authored-by: Serge Shkurko <sergeshkurko@outlook.com>
Co-authored-by: Serge Shkurko <shkurko@thekey.space>
Co-authored-by: zitob9 <elias.housni@gmail.com>
Co-authored-by: cedvdb <cedvandenbosch@gmail.com>
Co-authored-by: cizmarf <37090294+cizmarf@users.noreply.github.com>
Co-authored-by: Mattias Siø Fjellvang <mattias@doubble.dk>

* feat: add ability to customise search delegate app bar theme (#208)

* fix merge issue

* remove generated files from git

* saving

* refactor

* improve search ux

* refactor

* saving

* refactor

* rm

* upgrade flag cache

* cache

* saving

* refa

* refactor

* comment

* validation

* moving tests

* saving

* language

* fixing tests

* fix tests

* saving

* saving

* saving

* fix all tests

* Refactor (#212)

* fix merge issue

* remove generated files from git

* saving

* refactor

* improve search ux

* refactor

* saving

* refactor

* rm

* upgrade flag cache

* cache

* saving

* refa

* refactor

* comment

* validation

* moving tests

* saving

* language

* fixing tests

* fix tests

* saving

* saving

* saving

* fix all tests

* localization

* readd example

* localization

* dart fix

* external country selector

* cc

* External country selector (#213)

* fix merge issue

* remove generated files from git

* saving

* refactor

* improve search ux

* refactor

* saving

* refactor

* rm

* upgrade flag cache

* cache

* saving

* refa

* refactor

* comment

* validation

* moving tests

* saving

* language

* fixing tests

* fix tests

* saving

* saving

* saving

* fix all tests

* localization

* readd example

* localization

* dart fix

* external country selector

* cc

* dart fix

* bump version

* External country selector (#215)

* fix merge issue

* remove generated files from git

* saving

* refactor

* improve search ux

* refactor

* saving

* refactor

* rm

* upgrade flag cache

* cache

* saving

* refa

* refactor

* comment

* validation

* moving tests

* saving

* language

* fixing tests

* fix tests

* saving

* saving

* saving

* fix all tests

* localization

* readd example

* localization

* dart fix

* external country selector

* cc

* dart fix

* bump version

* mv

---------

Co-authored-by: Tautvydas Šidlauskas <tautvydas.sidlauskas@gmail.com>
Co-authored-by: Ahmad Najm <86409804+ahmadnajmdev@users.noreply.github.com>
Co-authored-by: Mattias Fjellvang <simplenotezy@users.noreply.github.com>
Co-authored-by: Mattias Siø Fjellvang <mattias@doubble.dk>
Co-authored-by: Serge Shkurko <sergeshkurko@outlook.com>
Co-authored-by: Serge Shkurko <shkurko@thekey.space>
Co-authored-by: zitob9 <elias.housni@gmail.com>
Co-authored-by: cizmarf <37090294+cizmarf@users.noreply.github.com>
  • Loading branch information
9 people authored Feb 5, 2024
1 parent 29de145 commit 2b6b0fa
Show file tree
Hide file tree
Showing 23 changed files with 22 additions and 102 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ packages:
path: ".."
relative: true
source: path
version: "8.1.1"
version: "9.0.0"
phone_numbers_parser:
dependency: transitive
description:
Expand Down
80 changes: 0 additions & 80 deletions lib/src/country/country_button.dart

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Arabic (`ar`).
class PhoneFieldLocalizationImplAr extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplAr([String locale = 'ar']) : super(locale);
PhoneFieldLocalizationImplAr([super.locale = 'ar']);

@override
String get invalidPhoneNumber => 'رقم الهاتف غير صحيح';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Central Kurdish (`ckb`).
class PhoneFieldLocalizationImplCkb extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplCkb([String locale = 'ckb']) : super(locale);
PhoneFieldLocalizationImplCkb([super.locale = 'ckb']);

@override
String get invalidPhoneNumber => 'ژمارەی تەلەفۆنی نادروست';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for German (`de`).
class PhoneFieldLocalizationImplDe extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplDe([String locale = 'de']) : super(locale);
PhoneFieldLocalizationImplDe([super.locale = 'de']);

@override
String get invalidPhoneNumber => 'Ungültige Telefonnummer';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Modern Greek (`el`).
class PhoneFieldLocalizationImplEl extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplEl([String locale = 'el']) : super(locale);
PhoneFieldLocalizationImplEl([super.locale = 'el']);

@override
String get invalidPhoneNumber => 'Μη έγκυρος αριθμός τηλεφώνου';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for English (`en`).
class PhoneFieldLocalizationImplEn extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplEn([String locale = 'en']) : super(locale);
PhoneFieldLocalizationImplEn([super.locale = 'en']);

@override
String get invalidPhoneNumber => 'Invalid phone number';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Spanish Castilian (`es`).
class PhoneFieldLocalizationImplEs extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplEs([String locale = 'es']) : super(locale);
PhoneFieldLocalizationImplEs([super.locale = 'es']);

@override
String get invalidPhoneNumber => 'Numero de telefono invalido';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Persian (`fa`).
class PhoneFieldLocalizationImplFa extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplFa([String locale = 'fa']) : super(locale);
PhoneFieldLocalizationImplFa([super.locale = 'fa']);

@override
String get invalidPhoneNumber => 'شماره تلفن نامعتبر است';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for French (`fr`).
class PhoneFieldLocalizationImplFr extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplFr([String locale = 'fr']) : super(locale);
PhoneFieldLocalizationImplFr([super.locale = 'fr']);

@override
String get invalidPhoneNumber => 'Numéro de téléphone invalide';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Hindi (`hi`).
class PhoneFieldLocalizationImplHi extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplHi([String locale = 'hi']) : super(locale);
PhoneFieldLocalizationImplHi([super.locale = 'hi']);

@override
String get invalidPhoneNumber => 'अवैध फोन नंबर';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Italian (`it`).
class PhoneFieldLocalizationImplIt extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplIt([String locale = 'it']) : super(locale);
PhoneFieldLocalizationImplIt([super.locale = 'it']);

@override
String get invalidPhoneNumber => 'Numero di telefono invalido';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Kurdish (`ku`).
class PhoneFieldLocalizationImplKu extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplKu([String locale = 'ku']) : super(locale);
PhoneFieldLocalizationImplKu([super.locale = 'ku']);

@override
String get invalidPhoneNumber => 'ژمارەی تەلەفۆنی نادروست';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Norwegian Bokmål (`nb`).
class PhoneFieldLocalizationImplNb extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplNb([String locale = 'nb']) : super(locale);
PhoneFieldLocalizationImplNb([super.locale = 'nb']);

@override
String get invalidPhoneNumber => 'Ugyldig telefonnummer';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Dutch Flemish (`nl`).
class PhoneFieldLocalizationImplNl extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplNl([String locale = 'nl']) : super(locale);
PhoneFieldLocalizationImplNl([super.locale = 'nl']);

@override
String get invalidPhoneNumber => 'Ongeldig telefoonnummer';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Portuguese (`pt`).
class PhoneFieldLocalizationImplPt extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplPt([String locale = 'pt']) : super(locale);
PhoneFieldLocalizationImplPt([super.locale = 'pt']);

@override
String get invalidPhoneNumber => 'Número de telefone inválido';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Russian (`ru`).
class PhoneFieldLocalizationImplRu extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplRu([String locale = 'ru']) : super(locale);
PhoneFieldLocalizationImplRu([super.locale = 'ru']);

@override
String get invalidPhoneNumber => 'Неправильный номер телефона';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Swedish (`sv`).
class PhoneFieldLocalizationImplSv extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplSv([String locale = 'sv']) : super(locale);
PhoneFieldLocalizationImplSv([super.locale = 'sv']);

@override
String get invalidPhoneNumber => 'Ogiltigt telefonnummer';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Turkish (`tr`).
class PhoneFieldLocalizationImplTr extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplTr([String locale = 'tr']) : super(locale);
PhoneFieldLocalizationImplTr([super.locale = 'tr']);

@override
String get invalidPhoneNumber => 'Geçersiz telefon numarası';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Ukrainian (`uk`).
class PhoneFieldLocalizationImplUk extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplUk([String locale = 'uk']) : super(locale);
PhoneFieldLocalizationImplUk([super.locale = 'uk']);

@override
String get invalidPhoneNumber => 'Невірний номер телефону';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Uzbek (`uz`).
class PhoneFieldLocalizationImplUz extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplUz([String locale = 'uz']) : super(locale);
PhoneFieldLocalizationImplUz([super.locale = 'uz']);

@override
String get invalidPhoneNumber => 'Telefon raqami noto‘g‘ri';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'phone_field_localization_impl.dart';

/// The translations for Chinese (`zh`).
class PhoneFieldLocalizationImplZh extends PhoneFieldLocalizationImpl {
PhoneFieldLocalizationImplZh([String locale = 'zh']) : super(locale);
PhoneFieldLocalizationImplZh([super.locale = 'zh']);

@override
String get invalidPhoneNumber => '无效的电话号码';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: phone_form_field
description: Flutter phone input integrated with flutter internationalization
version: 8.1.1
version: 9.0.0
homepage: https://github.com/cedvdb/phone_form_field

environment:
Expand Down

0 comments on commit 2b6b0fa

Please sign in to comment.