update version

This commit is contained in:
imtoori
2019-12-09 23:36:03 +01:00
parent e1e1b90df8
commit d9ec9e49fd
3 changed files with 9 additions and 7 deletions

View File

@@ -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

View File

@@ -1,4 +1,4 @@
[![Pub](https://img.shields.io/badge/Pub-1.1.7-orange.svg)](https://pub.dartlang.org/packages/country_code_picker) [![Pub](https://img.shields.io/badge/Pub-1.1.8-orange.svg)](https://pub.dartlang.org/packages/country_code_picker)
# country_code_picker # country_code_picker

View File

@@ -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(