added call to super.didUpdateWidget(oldWidget);

This commit is contained in:
Matteo
2020-02-01 12:20:06 +01:00
committed by GitHub
parent 5061b926ee
commit eb82bd7067

View File

@@ -135,6 +135,7 @@ class _CountryCodePickerState extends State<CountryCodePicker> {
@override
void didUpdateWidget(CountryCodePicker oldWidget) {
super.didUpdateWidget(oldWidget);
if(oldWidget.initialSelection != widget.initialSelection) {
if (widget.initialSelection != null) {
selectedItem = elements.firstWhere(