flutter_sim_country_code icon indicating copy to clipboard operation
flutter_sim_country_code copied to clipboard

Cannot get countrycode in ios

Open congfandi opened this issue 2 years ago • 0 comments

  Future<void>_tryGetCountryCode()async {
    try {
      final countryCode = await FlutterSimCountryCode.simCountryCode;
      if (countryCode == null) {
        return;
      }
      print("selected phone code $countryCode ");
      // currentCountryCode = countryCode;
    } catch (e) {
      return;
    }
  }

this code always retur -- in ios, but workinug well in android

congfandi avatar Jul 26 '23 01:07 congfandi