Skip to content

Commit

Permalink
Add missing countries and favorites params to CountrySelectorNavigato…
Browse files Browse the repository at this point in the history
…r.page factory (#267)

Currently, `PageNavigator._` private constructor accepts `super.countries` and `super.favorites` params, but they are not exposed in `CountrySelectorNavigator.page` public factory method, thus library users are not able to customize dispayed countries and favorites lists. This change adds those missing params to `CountrySelectorNavigator.page` factory.
  • Loading branch information
NodariMosia authored Nov 10, 2024
1 parent a0b569a commit 9237899
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/country_selector_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ abstract class CountrySelectorNavigator {
CountrySelectorNavigator.page;

const factory CountrySelectorNavigator.page({
List<IsoCode>? countries,
List<IsoCode>? favorites,
bool addSeparator,
bool showCountryCode,
bool sortCountries,
Expand Down

0 comments on commit 9237899

Please sign in to comment.