Country Code Picker | Flutter Package of the Week | Episode 4 (Latest)

Поділитися
Вставка
  • Опубліковано 10 вер 2024
  • Country Code Picker | Flutter Package of the Week | Episode 4 (Latest)
    Welcome to episode 4 of our Package of the week series in which every Thursday we look at some of the best packages that are available in the flutter community.
    The package for this week is fl_country_code_picker. This package shows a modal that contains the country dial code. The user can also search for the available codes and select right from the modal.
    ⚡️ Important Links:
    Follow On IG: [ / backslashflutter ]( / backslashflutter )
    fl_country_code_picker:
    [pub.dev/packag...](pub.dev/packag...)
    ► BECOME PART OF OUR FAMILY ON PATREON
    [ / backslashflutter ]( / backslashflutter )
    ► ALSO LEARN A TO CREATE CHAT-BASED APP
    📗 Chat App in Flutter and Firebase | Tutorial for Beginners to Advance | Android & iOS (Latest)
    [ • Chat App in Flutter an... ]( • Chat App in Flutter an... )
    🔔 Get updated with my projects🔔
    Follow me on Github: [github.com/backslashflutter](github.com/back...)
    #packageoftheweek #flutter #backslashflutter
    Tags:
    country code picker
    flutter package of the week
    flutter tutorial for beginners
    flutter country picker
    🔥 Subscribe for more:
    [ / backslashflutter ]( / backslashflutter )
    If this helps make sure to share it with friends and colleagues who will benefit from this
    Have questions/queries? 💬 Comment below I will be happy to help
    About Flutter:
    Flutter is an open-source UI software development kit created by Google. It is used to develop cross-platform applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase. The first version of Flutter was codename "Sky" and ran on the Android operating system.
    THANKS FOR YOUR LOVE AND SUPPORT💪

КОМЕНТАРІ • 72

  • @backslashflutter
    @backslashflutter  2 роки тому

    0:01 Sorry this is Episode 4 🥲
    Do let me know what package you want me to cover ! (SUBSCRIBE NOW)

  • @anbeshathapa7932
    @anbeshathapa7932 Рік тому +3

    i am receving an error message when i press to select a country " null check operator used on a null value" . Please give me a solution for this

    • @backslashflutter
      @backslashflutter  Рік тому

      CountryCode? _countryCode;
      all the places where you are calling this _countryCode you need to make a null check there.
      _countryCode == null ? const SizedBox.shrink(): Container('your code here')

  • @praise7976
    @praise7976 2 роки тому +1

    i am creating a demo flutter app, i used this same package for country code but i dont know how to add flag, today i learned thank you.

  • @mateoelizalde4243
    @mateoelizalde4243 10 місяців тому

    Is there a way of not having my search box borders dissapearing when I tap on inputField in the "Select your country" screen?

  • @sonujha5118
    @sonujha5118 Рік тому +1

    i am receving an error message when i press to select a country " null check operator used on a null value" . please what can i do to resolve it?

    • @backslashflutter
      @backslashflutter  Рік тому

      CountryCode? _countryCode;
      all the places where you are calling this _countryCode you need to make a null check there.
      _countryCode == null ? const SizedBox.shrink(): Container('your code here')

  • @acornerofherheart-jr9pl
    @acornerofherheart-jr9pl 5 місяців тому

    countrycode!= null? countrycode!.flagImage:null, giving error cant use argument type object to the parameter type Widget.. any solution? i m stuck here

  • @Theloebtit32000
    @Theloebtit32000 Рік тому

    wonderful video, this exactly what I needed. Thank you very much!

  • @nandaydas8670
    @nandaydas8670 Рік тому

    Whenever I click, it says null check operator used on a null value. Can you please help?

    • @backslashflutter
      @backslashflutter  Рік тому

      this way i wouldnt be able to determine which part it is showing to, please provide more reference to this

  • @codewithnaddy
    @codewithnaddy Рік тому +1

    Your explanation is really good. Can you please tell now to give an initial country code and country flag?

    • @backslashflutter
      @backslashflutter  Рік тому

      thanks for watching, in the place where you initialized the country code variable pass the json values.

    • @chidera2776
      @chidera2776 3 місяці тому

      @@backslashflutter hello please can you explain how to do this or give an example

  • @TechHacksmohitsharma
    @TechHacksmohitsharma Рік тому +1

    Null check operator used on a null value
    I am getting this error

    • @ParasProgramming123
      @ParasProgramming123 Рік тому

      mughe b

    • @backslashflutter
      @backslashflutter  Рік тому

      the palce where you can calling the CountryCode? _countryCode.
      Make sure to have this _countryCode == null ? const SizedBox.shrink() : Container('your code here')

  • @natdiv9
    @natdiv9 Рік тому

    Very interesting tuto, it helped me!
    Thanks
    🙏

  • @moizahmed5372
    @moizahmed5372 Рік тому

    thanks

  • @willspiremotivation
    @willspiremotivation Рік тому

    tq so much ❤❤ sir. this package really very useful.

  • @hoangjohnny9572
    @hoangjohnny9572 Рік тому +1

    Can we change the title "Select your country" and the hint in the search bar ?🤔

  • @michaelgoya3102
    @michaelgoya3102 Рік тому

    I have a problem, when I click on the country code and then I want to type in the phone number, the phone number disappears

  • @KavikumarC
    @KavikumarC Рік тому

    setstate function is not showing inside the ontap function what will i do for that?

  • @dhananjaypatil2355
    @dhananjaypatil2355 2 роки тому +1

    And also please tell us how to publish app to play store

  • @sivashankarnagarajan7805
    @sivashankarnagarajan7805 2 роки тому +1

    How to show default country code and flag based on the location?

  • @sat_talk
    @sat_talk 2 роки тому +1

    Great video..keep it up

  • @praise7976
    @praise7976 2 роки тому +1

    do you know any package for mobile verification (all countries).

    • @backslashflutter
      @backslashflutter  2 роки тому

      I have worked with firebase otp verification, and i guess most people use that too, have you looked at it

    • @praise7976
      @praise7976 2 роки тому

      @@backslashflutter ok

  • @letstry.coding_2816
    @letstry.coding_2816 2 роки тому

    Thank you so much

  • @PankajSinghR
    @PankajSinghR Рік тому

    Plz
    How to set default country flag on screen like countrycode

    • @backslashflutter
      @backslashflutter  Рік тому

      in the latest tutorial for phone authentication that is posted on my channel, there is implementation for that, altough the package is different but you can get the idea from it.

  • @snakehackx
    @snakehackx Рік тому

    what video! thanks so much

  • @majorbriggs8876
    @majorbriggs8876 Рік тому

    Please can you drop a code for a default country and its country code( without having that white scroll when clicking the dial code)

    • @backslashflutter
      @backslashflutter  Рік тому

      you can simply set the json values of it in starting initialization. Do let me know if you are unable to do that

  • @ParasProgramming123
    @ParasProgramming123 Рік тому

    bhai 9:18 tak to follow kiya mane but jb run kr rha hu 9:18 vale step pr tab har bar null vala error aa rha h

    • @backslashflutter
      @backslashflutter  Рік тому

      bro when you make CountryCode? countryCode as null, then whatsoever place you are calling countryCode, please make sure to add a check countryCode == null ? const SizedBox.shrink() : Container('your code here')

  • @pranavvariar2751
    @pranavvariar2751 2 роки тому +1

    Bro how much did your Mac cost and what is your configuration?

    • @backslashflutter
      @backslashflutter  2 роки тому

      It is macbook air m1, 8gb
      I freelanced for 6 month to save enough to get this laptop. So if you plan to get it then go with M2 which is totally out of the box laptop

    • @pranavvariar2751
      @pranavvariar2751 2 роки тому +1

      @@backslashflutter ok thanks bro is 8gb ram enough?

    • @backslashflutter
      @backslashflutter  2 роки тому

      @@pranavvariar2751 depends on usage bro, if you are streaming on youtube or something like that, then 16gb would be a top notch specs, but trust me 8gb also do everything without any issues

    • @pranavvariar2751
      @pranavvariar2751 2 роки тому

      @@backslashflutter thanks for your reply , I am currently developing a cross platform app using flutter desktop for Linux ,Mac, Windows and I am planning to take M2 air with 512gb SSD and 16gb ram.

  • @dhananjaypatil2355
    @dhananjaypatil2355 2 роки тому +1

    Hey @shivansh
    Can you make roadmap for flutter developer
    Where to start

  • @willspiremotivation
    @willspiremotivation Рік тому

    sir, how to add vertical divider in textfieald ?

  • @MoinooTayara
    @MoinooTayara Рік тому

    how do you add container in prefixIcon?

    • @backslashflutter
      @backslashflutter  Рік тому

      prefixIcon: Container() is this something you were asking?