added call to super.didUpdateWidget(oldWidget);
This commit is contained in:
@@ -135,6 +135,7 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void didUpdateWidget(CountryCodePicker oldWidget) {
|
void didUpdateWidget(CountryCodePicker oldWidget) {
|
||||||
|
super.didUpdateWidget(oldWidget);
|
||||||
if(oldWidget.initialSelection != widget.initialSelection) {
|
if(oldWidget.initialSelection != widget.initialSelection) {
|
||||||
if (widget.initialSelection != null) {
|
if (widget.initialSelection != null) {
|
||||||
selectedItem = elements.firstWhere(
|
selectedItem = elements.firstWhere(
|
||||||
|
|||||||
Reference in New Issue
Block a user