allow to edit dialog textStyle
This commit is contained in:
@@ -17,6 +17,7 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
final bool showCountryOnly;
|
final bool showCountryOnly;
|
||||||
final InputDecoration searchDecoration;
|
final InputDecoration searchDecoration;
|
||||||
final TextStyle searchStyle;
|
final TextStyle searchStyle;
|
||||||
|
final TextStyle dialogTextStyle;
|
||||||
final WidgetBuilder emptySearchBuilder;
|
final WidgetBuilder emptySearchBuilder;
|
||||||
final Function(CountryCode) builder;
|
final Function(CountryCode) builder;
|
||||||
final bool enabled;
|
final bool enabled;
|
||||||
@@ -64,6 +65,7 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
this.showCountryOnly = false,
|
this.showCountryOnly = false,
|
||||||
this.searchDecoration = const InputDecoration(),
|
this.searchDecoration = const InputDecoration(),
|
||||||
this.searchStyle,
|
this.searchStyle,
|
||||||
|
this.dialogTextStyle,
|
||||||
this.emptySearchBuilder,
|
this.emptySearchBuilder,
|
||||||
this.showOnlyCountryWhenClosed = false,
|
this.showOnlyCountryWhenClosed = false,
|
||||||
this.alignLeft = false,
|
this.alignLeft = false,
|
||||||
@@ -228,6 +230,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
emptySearchBuilder: widget.emptySearchBuilder,
|
emptySearchBuilder: widget.emptySearchBuilder,
|
||||||
searchDecoration: widget.searchDecoration,
|
searchDecoration: widget.searchDecoration,
|
||||||
searchStyle: widget.searchStyle,
|
searchStyle: widget.searchStyle,
|
||||||
|
textStyle: widget.dialogTextStyle,
|
||||||
showFlag: widget.showFlag || (widget.showFlagDialog == true),
|
showFlag: widget.showFlag || (widget.showFlagDialog == true),
|
||||||
flagWidth: widget.flagWidth,
|
flagWidth: widget.flagWidth,
|
||||||
size: widget.dialogSize,
|
size: widget.dialogSize,
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ class SelectionDialog extends StatefulWidget {
|
|||||||
final bool showCountryOnly;
|
final bool showCountryOnly;
|
||||||
final InputDecoration searchDecoration;
|
final InputDecoration searchDecoration;
|
||||||
final TextStyle searchStyle;
|
final TextStyle searchStyle;
|
||||||
|
final TextStyle textStyle;
|
||||||
final WidgetBuilder emptySearchBuilder;
|
final WidgetBuilder emptySearchBuilder;
|
||||||
final bool showFlag;
|
final bool showFlag;
|
||||||
final double flagWidth;
|
final double flagWidth;
|
||||||
@@ -24,6 +25,7 @@ class SelectionDialog extends StatefulWidget {
|
|||||||
this.emptySearchBuilder,
|
this.emptySearchBuilder,
|
||||||
InputDecoration searchDecoration = const InputDecoration(),
|
InputDecoration searchDecoration = const InputDecoration(),
|
||||||
this.searchStyle,
|
this.searchStyle,
|
||||||
|
this.textStyle,
|
||||||
this.showFlag,
|
this.showFlag,
|
||||||
this.flagWidth = 32,
|
this.flagWidth = 32,
|
||||||
this.size,
|
this.size,
|
||||||
@@ -132,6 +134,7 @@ class _SelectionDialogState extends State<SelectionDialog> {
|
|||||||
? e.toCountryStringOnly()
|
? e.toCountryStringOnly()
|
||||||
: e.toLongString(),
|
: e.toLongString(),
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
|
style: widget.textStyle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user