altafc22 / csc_picker

A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.
BSD 3-Clause "New" or "Revised" License
27 stars 111 forks source link

STOPPED WORKING AFTER 3.7.3 #60

Open MeesamGardezi opened 1 year ago

MeesamGardezi commented 1 year ago

Describe the bug Error in IDE due to new flutter version.

Steps to reproduce the behavior:

  1. Upgrade Flutter

Expected behavior No error should be shown.

Error: Undefined name 'DefaultCountry'. (Documentation) Try correcting the name to one that is defined, or defining the name.

Unima97 commented 1 year ago

I have same problem, please solve it

altafc22 commented 1 year ago

Hi @Unima97 @CurtainProgramming , please note that DefaultCountry type is changed to CscCountry in latest version

defaultCountry | CscCountry | To select default country

change type of your default country.

i hope this will help you.

Unima97 commented 1 year ago

@altafc22 I have not specified any default country. I tried also to insert only CscCountry() without attributes bit nothing changed. The problemi is that the inputs are disabled and tapping or clicking nothing happens.

MeesamGardezi commented 1 year ago

Hey, I solved this issue by copying the countries JSON file and creating the widget myself.