From eb82bd7067399c639eaf2d64cc95dc5b151e474d Mon Sep 17 00:00:00 2001 From: Matteo Date: Sat, 1 Feb 2020 12:20:06 +0100 Subject: [PATCH] added call to super.didUpdateWidget(oldWidget); --- lib/country_code_picker.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/country_code_picker.dart b/lib/country_code_picker.dart index e7733c5..05e23ca 100644 --- a/lib/country_code_picker.dart +++ b/lib/country_code_picker.dart @@ -135,6 +135,7 @@ class _CountryCodePickerState extends State { @override void didUpdateWidget(CountryCodePicker oldWidget) { + super.didUpdateWidget(oldWidget); if(oldWidget.initialSelection != widget.initialSelection) { if (widget.initialSelection != null) { selectedItem = elements.firstWhere(