update version
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
## 1.1.8
|
## 1.2.0
|
||||||
- Added Ability to render custom Widget instead of package one's, through [customWidget] param [@Saifallak](https://github.com/Saifallak).
|
Added Ability to render custom Widget instead of package one's.
|
||||||
|
|
||||||
|
Bug fix.
|
||||||
|
|
||||||
## 1.1.7
|
## 1.1.7
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[](https://pub.dartlang.org/packages/country_code_picker)
|
[](https://pub.dartlang.org/packages/country_code_picker)
|
||||||
|
|
||||||
# country_code_picker
|
# country_code_picker
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
final InputDecoration searchDecoration;
|
final InputDecoration searchDecoration;
|
||||||
final TextStyle searchStyle;
|
final TextStyle searchStyle;
|
||||||
final WidgetBuilder emptySearchBuilder;
|
final WidgetBuilder emptySearchBuilder;
|
||||||
final Widget customWidget;
|
final Function(CountryCode) builder;
|
||||||
|
|
||||||
/// shows the name of the country instead of the dialcode
|
/// shows the name of the country instead of the dialcode
|
||||||
final bool showOnlyCountryWhenClosed;
|
final bool showOnlyCountryWhenClosed;
|
||||||
@@ -52,7 +52,7 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
this.showOnlyCountryWhenClosed = false,
|
this.showOnlyCountryWhenClosed = false,
|
||||||
this.alignLeft = false,
|
this.alignLeft = false,
|
||||||
this.showFlag = true,
|
this.showFlag = true,
|
||||||
this.customWidget,
|
this.builder,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -88,10 +88,10 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
Widget _widget;
|
Widget _widget;
|
||||||
if (widget.customWidget != null)
|
if (widget.builder != null)
|
||||||
_widget = InkWell(
|
_widget = InkWell(
|
||||||
onTap: _showSelectionDialog,
|
onTap: _showSelectionDialog,
|
||||||
child: widget.customWidget,
|
child: widget.builder(selectedItem),
|
||||||
);
|
);
|
||||||
else {
|
else {
|
||||||
_widget = FlatButton(
|
_widget = FlatButton(
|
||||||
|
|||||||
Reference in New Issue
Block a user