Тёмный

Flutter - Country State City Picker | csc_picker package review 

Effortless Code Learning
Подписаться 1,9 тыс.
Просмотров 13 тыс.
50% 1

This video explains how to display country, state and city picker. 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.
Source Code: github.com/rit...
Package: pub.dev/packag...
👉 Social Media
► GitHub: github.com/ritsat
► Instagram: / effortlesscodelearning
► Blog: effortlesscode...
#Flutter #flutterdev #flutterdeveloper
Please Like, Share, Subscribe & Click on the Bell button for more video like this
Thanks for watching the video :-)

Опубликовано:

 

11 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@altafc22
@altafc22 Год назад
Hey thanks for using my package, I am glad that my contribution is helpful for flutter community ❤️
@EffortlessCodeLearning
@EffortlessCodeLearning Год назад
Thanks for such amazing package.
@memocraftsph
@memocraftsph Год назад
Hello. Can I ask why the fields are in disabled state? I can't click it. Appreciate your response
@ribhavraghav3306
@ribhavraghav3306 Год назад
can i just use state and city and not the country option?
@jananig731
@jananig731 7 месяцев назад
Flutter Web engine failed to fetch "assets/packages/csc_picker/lib/assets/country.json". HTTP request succeeded, but the server responded with HTTP status 404. Error: Unable to load asset: "packages/csc_picker/lib/assets/country.json". The asset does not exist or has empty data. I got this error.How to rectify this
@bobdaawid2218
@bobdaawid2218 3 месяца назад
Hello altafc22, please i have a question. Is it possible to use just states but based on a country? The country and city dropdown will not be used but the states will be based on a particular country.
@noxtube7937
@noxtube7937 Месяц назад
I didn't know that there was package like this, thanks brother
@EffortlessCodeLearning
@EffortlessCodeLearning Месяц назад
Welcome
@kesenalican
@kesenalican Год назад
I was scared when I had to do this feature. I didn't know that there is a package about this package. Thank you so much :))
@EffortlessCodeLearning
@EffortlessCodeLearning Год назад
Glad! it helped you. Thanks for watching the video.
@osamaomran6306
@osamaomran6306 4 месяца назад
شكرا يا أخو 🫂
@miis_take155
@miis_take155 11 месяцев назад
thank you brother💞...is there any way to hide Country Dropdown...bcoz we want only state and city..we use disableCountry: true, but its not working
@mmm22chess
@mmm22chess 6 месяцев назад
does this package support locale? so i can see the dropdown in portuguese, italian, spanish, french, russian, etc...?
@bobdaawid2218
@bobdaawid2218 3 месяца назад
Is it possible to use just states but base on a country? The country and city dropdown would not be used.
@shahabbaloch699
@shahabbaloch699 3 месяца назад
Just default country and display hidden this way you will have only state dropdown.
@khangirls312
@khangirls312 11 месяцев назад
well done 😊
@memocraftsph
@memocraftsph Год назад
Hello. Can I ask why the fields are in disabled state? I can't click it. Appreciate your response
@MarkeTrade-MarketPlace
@MarkeTrade-MarketPlace 7 месяцев назад
thnks for video
@EffortlessCodeLearning
@EffortlessCodeLearning 7 месяцев назад
Welcome
@khangirls312
@khangirls312 11 месяцев назад
but I want to show only cities name not state or country name please tell me how I can resolve it
@thaophung9503
@thaophung9503 Год назад
Not sure what happened but whenever I try to select a country, I get this error: @pragma("vm:external-name", "Error_throwWithStackTrace") external static Never _throw(Object error, StackTrace stackTrace);
@lokeshvaishnav7989
@lokeshvaishnav7989 Год назад
Very helpful thank you so much
@EffortlessCodeLearning
@EffortlessCodeLearning Год назад
Glad it was helpful!
@MDMAHFUJURRAHMAN-w3n
@MDMAHFUJURRAHMAN-w3n Год назад
is the result
@DhruvitGopani
@DhruvitGopani 7 месяцев назад
Not useful feature its Working fine as you set value 1st time but in some situations if you want to edit customer details that time controller value cant take CSCPicker
@chetankumar2689
@chetankumar2689 Год назад
how to work with GetX flutter in this package
@zafranhazarvi9196
@zafranhazarvi9196 Год назад
sir ya error arahy ha. Error while trying to load an asset: Failed to load asset at "assets/packages/csc_picker/lib/assets/country.json" (404) Error: Unable to load asset: packages/csc_picker/lib/assets/country.json
@EffortlessCodeLearning
@EffortlessCodeLearning Год назад
Please run pub get, restart the application & check once again.
@paranthamanarumugam4172
@paranthamanarumugam4172 2 года назад
Hi bro.. can you explain Radiolisttile value save using sharedpreferences I stuck with get the values
@EffortlessCodeLearning
@EffortlessCodeLearning 2 года назад
You can get selected RadioListTile widget value using onChange callback handler and inside this callback handler you can set the value in SharedPreferences . Below code for the reference. You can further refactor this code. I have just given it for reference. RadioListTile( value: 1, groupValue: val, onChanged: (value) async { // get selected value here SharedPreferences prefs = await SharedPreferences.getInstance(); prefs.setString('gender', value); }, title: Text("Male"), ) Likewise you can get the value from SharedPreferences & set to RadioListTile, SharedPreferences prefs = await SharedPreferences.getInstance(); final gender= prefs.getString('gender') ?? ''; setState({});
@paranthamanarumugam4172
@paranthamanarumugam4172 2 года назад
@@EffortlessCodeLearning okay Thanks I will try let you know
@paranthamanarumugam4172
@paranthamanarumugam4172 2 года назад
I find the solution bro after debugging save method only I did wrong now able to getting the data properly... Anyway thanks a lot your reply 😊
@EffortlessCodeLearning
@EffortlessCodeLearning 2 года назад
@@paranthamanarumugam4172 Glad to hear that
@EffortlessCodeLearning
@EffortlessCodeLearning 2 года назад
@@paranthamanarumugam4172 Glad to hear
@mukeshb6590
@mukeshb6590 2 года назад
How to increase the size of the text boxes of this widget , is that possible
@EffortlessCodeLearning
@EffortlessCodeLearning 2 года назад
You can wrap CSCPicker widget inside SizedBox or Container widget then you can set width on this outer widget.
@LeonardoReyes-ob7hv
@LeonardoReyes-ob7hv Год назад
I already imported the package but I would like to know if there is a way to delete or take out some countries. For example I want to limit the countries to United States, Canada, Mexico, and England is there a way that I can do that.
@EffortlessCodeLearning
@EffortlessCodeLearning Год назад
As of now, there is no such option available with this package, but I have made this change & raised a pull request to merge the code with this package. Once the code is merged by package creator, option to limit the countries will be available. I will update you once this change is merged & new version of this package is published. Meantime I will check & update you for another solution that can be used until this option is available with this package.
@EffortlessCodeLearning
@EffortlessCodeLearning Год назад
This feature is now available with the latest version of this package. Please refer package page for more details, pub.dev/packages/csc_picker You can use countryFilter property in CSCPicker widget to show limited countries in the drop down. You can use countryFilter property like the following way, //Country Filter, it is optional parameter countryFilter: [CscCountry.India,CscCountry.United_States,CscCountry.Canada], I hope it will help.
@mohamedyashik1049
@mohamedyashik1049 2 года назад
How to convert 2 year old flutter code to convert into new flutter SDK 3.5
@EffortlessCodeLearning
@EffortlessCodeLearning 2 года назад
Below links will help you to upgrade the flutter project, medium.com/nerd-for-tech/upgrade-your-old-flutter-projects-to-flutter-version-2-with-null-safety-b42f0f21505f docs.flutter.dev/development/tools/sdk/upgrading
@praveenhari8064
@praveenhari8064 Год назад
Bro i am getting error package not found
@EffortlessCodeLearning
@EffortlessCodeLearning Год назад
Please run pub get, restart the application & check once again.
@MrKratosYT
@MrKratosYT 2 года назад
brother can you check your instagram
Далее
Country State City Dropdown with API Calls in Flutter
34:33
BRUTAL STREET FIGHT KNOCK OUT
00:20
Просмотров 1,2 млн
Women's Defending + Men's 😮‍💨❌
00:20
Просмотров 938 тыс.
Обыкновенное чудо
00:48
Просмотров 760 тыс.
Top 30 Flutter Tips and Tricks
6:50
Просмотров 561 тыс.
📱DOPE Animations • Flutter Tutorial ♡
5:25
Просмотров 104 тыс.
Arch Linux Experience - Hyprland
39:02
Просмотров 137 тыс.
Every React 19 Feature Explained in 8 Minutes
7:35
Просмотров 131 тыс.
Realtime Weather App | Flutter  Speed Code | 2024
14:44
Просмотров 2,4 тыс.
DATE PICKER • Flutter Widget of the Day #25
5:02
Просмотров 51 тыс.
BRUTAL STREET FIGHT KNOCK OUT
00:20
Просмотров 1,2 млн