Skip to content

Commit

Permalink
deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvandenbosch committed Nov 10, 2024
1 parent ca61bc8 commit cd031e4
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 20 deletions.
4 changes: 2 additions & 2 deletions example/macos/Flutter/ephemeral/Flutter-Generated.xcconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=C:\dev\flutter
FLUTTER_APPLICATION_PATH=C:\Users\cedva\Documents\Dev\libraries\countries\phone_form_field\example
FLUTTER_ROOT=/home/cedvdb/snap/flutter/common/flutter
FLUTTER_APPLICATION_PATH=/home/cedvdb/Dev/libs/flutter/phone_form_field/example
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=1.0.0
Expand Down
4 changes: 2 additions & 2 deletions example/macos/Flutter/ephemeral/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=C:\dev\flutter"
export "FLUTTER_APPLICATION_PATH=C:\Users\cedva\Documents\Dev\libraries\countries\phone_form_field\example"
export "FLUTTER_ROOT=/home/cedvdb/snap/flutter/common/flutter"
export "FLUTTER_APPLICATION_PATH=/home/cedvdb/Dev/libs/flutter/phone_form_field/example"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=1.0.0"
Expand Down
10 changes: 5 additions & 5 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ packages:
dependency: transitive
description:
name: flutter_country_selector
sha256: fd50903aba4e0a3b7b85c9a2b0fffbab4fac7a62e04ef3a304e852defcfa2e38
sha256: "71e06142b71fd9f645ec7aa1817e0468974d971258d829549f42f2d39250888a"
url: "https://pub.dev"
source: hosted
version: "1.0.12"
version: "1.0.13"
flutter_lints:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -222,15 +222,15 @@ packages:
path: ".."
relative: true
source: path
version: "9.2.8"
version: "10.0.0"
phone_numbers_parser:
dependency: transitive
description:
name: phone_numbers_parser
sha256: af9756bdf9bd7e8f7a5af0c2e769e2ac9aad35418c06598dc18d19cdf4de00dc
sha256: "75986ce6185a601afcb791f79a650bbcb438c5672482da7efa40f0002a57cc74"
url: "https://pub.dev"
source: hosted
version: "9.0.1"
version: "9.0.2"
sky_engine:
dependency: transitive
description: flutter
Expand Down
34 changes: 23 additions & 11 deletions lib/src/country_selector_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class CountrySelectorNavigator {
const CountrySelectorNavigator({
this.countries,
this.favorites,
@Deprecated('This is always on by default, this can be safely removed')
@Deprecated('This is always on, this can be safely removed')
bool addSeparator = true,
@Deprecated('Use [showDialCode] instead') bool? showCountryCode,
bool? showDialCode,
Expand Down Expand Up @@ -80,8 +80,10 @@ abstract class CountrySelectorNavigator {
double? width,
List<IsoCode>? countries,
List<IsoCode>? favorites,
@Deprecated('This is always on, this can be safely removed')
bool addSeparator,
bool showCountryCode,
@Deprecated('Use [showDialCode] instead') bool? showCountryCode,
bool? showDialCode,
bool sortCountries,
String? noResultMessage,
bool searchAutofocus,
Expand All @@ -93,15 +95,13 @@ abstract class CountrySelectorNavigator {
ScrollPhysics? scrollPhysics,
}) = DialogNavigator._;

@Deprecated('Use [CountrySelectorNavigator.page] instead')
const factory CountrySelectorNavigator.searchDelegate() =
CountrySelectorNavigator.page;

const factory CountrySelectorNavigator.page({
List<IsoCode>? countries,
List<IsoCode>? favorites,
@Deprecated('This is always on, this can be safely removed')
bool addSeparator,
bool showCountryCode,
@Deprecated('Use [showDialCode] instead') bool? showCountryCode,
bool? showDialCode,
bool sortCountries,
String? noResultMessage,
TextStyle? subtitleStyle,
Expand All @@ -116,8 +116,10 @@ abstract class CountrySelectorNavigator {
const factory CountrySelectorNavigator.bottomSheet({
List<IsoCode>? countries,
List<IsoCode>? favorites,
@Deprecated('This is always on, this can be safely removed')
bool addSeparator,
bool showCountryCode,
@Deprecated('Use [showDialCode] instead') bool? showCountryCode,
bool? showDialCode,
bool sortCountries,
String? noResultMessage,
bool searchAutofocus,
Expand All @@ -133,8 +135,10 @@ abstract class CountrySelectorNavigator {
double? height,
List<IsoCode>? countries,
List<IsoCode>? favorites,
@Deprecated('This is always on, this can be safely removed')
bool addSeparator,
bool showCountryCode,
@Deprecated('Use [showDialCode] instead') bool? showCountryCode,
bool? showDialCode,
bool sortCountries,
String? noResultMessage,
bool searchAutofocus,
Expand All @@ -153,8 +157,10 @@ abstract class CountrySelectorNavigator {
BorderRadiusGeometry? borderRadius,
List<IsoCode>? countries,
List<IsoCode>? favorites,
@Deprecated('This is always on, this can be safely removed')
bool addSeparator,
bool showCountryCode,
@Deprecated('Use [showDialCode] instead') bool? showCountryCode,
bool? showDialCode,
double flagSize,
bool sortCountries,
String? noResultMessage,
Expand All @@ -177,8 +183,10 @@ class DialogNavigator extends CountrySelectorNavigator {
this.height,
super.countries,
super.favorites,
@Deprecated('This is always on, this can be safely removed')
super.addSeparator,
super.showCountryCode,
@Deprecated('Use [showDialCode] instead') bool? showCountryCode,
bool? showDialCode,
super.sortCountries,
super.noResultMessage,
super.searchAutofocus = kIsWeb,
Expand Down Expand Up @@ -214,6 +222,7 @@ class PageNavigator extends CountrySelectorNavigator {
super.countries,
super.favorites,
super.addSeparator,
super.showDialCode,
super.showCountryCode,
super.sortCountries,
super.noResultMessage,
Expand Down Expand Up @@ -274,6 +283,7 @@ class BottomSheetNavigator extends CountrySelectorNavigator {
super.countries,
super.favorites,
super.addSeparator,
super.showDialCode,
super.showCountryCode,
super.sortCountries,
super.noResultMessage,
Expand Down Expand Up @@ -318,6 +328,7 @@ class ModalBottomSheetNavigator extends CountrySelectorNavigator {
super.countries,
super.favorites,
super.addSeparator,
super.showDialCode,
super.showCountryCode,
super.sortCountries,
super.noResultMessage,
Expand Down Expand Up @@ -362,6 +373,7 @@ class DraggableModalBottomSheetNavigator extends CountrySelectorNavigator {
super.countries,
super.favorites,
super.addSeparator,
super.showDialCode,
super.showCountryCode,
super.sortCountries,
super.flagSize,
Expand Down

0 comments on commit cd031e4

Please sign in to comment.