Flutter Getx State Management Tutorial | GetBuilder | Obx | Update | Dependency Injection | Routing

Поділитися
Вставка
  • Опубліковано 16 гру 2021
  • You will learn about flutter Getx State Management. We will cover GetBuilder, Obx and Dependency Injection. We will also cover the difference between GetBuilder and Obx. We will also learn how to inject controller. Injecting controllers many different ways. We will also the difference between Getx Get.find() and Get.put and Get.lazyInput.
    🔥🔥🔥🔥🔥🔥📚📖📚📖📚📖📚📖📚📖Take the complete E-commece app
    www.dbestech.com/tutorials/fl...
    📚📖📚📖📚📖👆🔼⏫🔥🔥🔥🔥🔥🔥
    Flutter food delivery app
    www.dbestech.com/tutorials/fl...
    We will also covering Getx routing and update method
    Learn more about getx here with beautiful ui
    www.dbestech.com/tutorials/fl...
    twitter @dbestech
    Timestamp
    0:0:30 Create a project
    0:0:46 Install Getx Package
    0:0:50: Introduction to Getx Package
    0:02:00 Create my_home_page a staless class
    0:02:58 Work on the ui
    0:07:48 Done working on the basic UI
    0:08:30 Create first getx controller
    0:09:24 Create first Getx Int variable
    0:12:00 Introduce dependency injection
    0:14:50 Call controller method
    0:17:20 Introduce GetBuilder
    0:20:15 Getx Update() method
    0:23:24 Create first_page file
    0:26:17 Getx Get.to Routing
    0:30:03 Getx Get.back() routing
    0:32:02 Introduce Get.find() method
    0:35:41 Compare update() and setState()
    0:38:53 Null check operator used on null value explain
    0:40:05 Create second_page.dart
    0:42:17 Navigate to second_page
    0:43:24 Create third_page.dart
    0:45:20 Use Get.find() on third_page for finding the controller
    0:47:44 Different way finding a controller Get.find using arrow
    0:49:20 Introducing RxInt and obs in Getx
    0:50:10 Work on the obs value
    0:54:20 Introducing OBX() in Getx
    0:57:07 Sum or Add two values in Getx Controller
    0:58:56 Get the sum value in the value using function
    0:59:55 Multiple column inside Obx()
    1:02:07 Saving the sum or added value in obs value
    1:02:29 Create the second controller listController
    1:03:10 Create properties or field inside the controller
    1:03:15 Created obs list in the Getx Controller
    1:04:23 Inject ListController in the third_page
    1:05:00 Get the value from another controller and Set or pass the values in the Obs list from the view to the other controller
    1:08:00 Introducing a different way of injecting controllers or dependency injection
    1:10:08 Initialize all the controllers in a different file
    1:11:06 Do the controllers binding in the main function. Do the dependency bindings
    1:13:09 Use lGet.azyPut() for controllers injecting
    1:14:56 Using binding class to do the bindings of the controllers using intialBinding
  • Наука та технологія

КОМЕНТАРІ • 137

  • @amraqel9718
    @amraqel9718 2 роки тому +13

    As a flutter beginner. This is the most clear example about state management. Thank you very much.

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

      You're very welcome!

  • @gizmogeeksguide
    @gizmogeeksguide Рік тому +2

    That's the video I was looking for. Thanks for creating such beautiful content.

  • @jcperez7925
    @jcperez7925 2 роки тому +10

    Well explained, this is by far the most detailed tutorial that I've watched. Props to you sir, thank you. +subs

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

    Wow GetX is amazingly awesome!!

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

    Get a food delivery e-commerce app
    www.dbestech.com/tutorials/flutter-food-delivery-app-e-commerce-for-ios-and-android

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

    Relax, savor a sip of coffee, and engage in coding. Appreciate the approach and of course the video!

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

      Glad you liked it!

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

    The only getX tutorial that i could understand it
    Thank you so much

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

    Hey thank you very much! Learnt a lot from this!

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

    Thanks. This is a really comprehensive approach to learning GetX Package

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

      Glad it was helpful!

  • @user-mh9nu5up9t
    @user-mh9nu5up9t Рік тому

    Thanks well needed Tutorial 👏👏👏👏

  • @parameshmamidisetti8167
    @parameshmamidisetti8167 2 роки тому +2

    As a beginner i am understand very well
    Thank you ❤️

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

      You’re welcome 😊

  • @fatima-cf1bj
    @fatima-cf1bj Рік тому

    great teacher thank you 😍

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

    the best GetX video i have seen

  • @user-sv3pc7my6n
    @user-sv3pc7my6n 2 роки тому +1

    You are my hero..Very nice class!!

  • @anozGosai
    @anozGosai 11 місяців тому

    well described,
    thank you for posting this video. It helped me alot.

    • @dbestech
      @dbestech  11 місяців тому

      Glad it helped

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

    You're really the best!

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

    This Getx video needs an award

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

    nice!!! well done!!!

  • @muhammadkoyathangal1975
    @muhammadkoyathangal1975 4 місяці тому

    That was So simple to Understand ❤❤

    • @dbestech
      @dbestech  4 місяці тому

      Yes, GetX is one of the Best

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

    One of the best Video on Getx .. keep it up..

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

    Great tutorial. thank you for sharing the knowledge

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

    Thanks a lot...Greetings from Egypt...

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

    This is very great tutorial. I enjoyed it thank you sir

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

    Thanks so much brother May Allah bless you.

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

    Good tutorial on Getx state management!

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

      Glad it was helpful!

  • @QuizWeb-wn7xd
    @QuizWeb-wn7xd 11 місяців тому

    You tutorials are great and they are helping me create my own app, one question that I cannot get my head round.
    when you use the stless short cut to create a widget, I get a slightly different syntax as below:
    class MyApp extends StatelessWidget {
    MyApp({super.key});
    this is different to yours, which is below
    class MyApp extends StatelessWidget {
    MyApp({Key? key}) : super(key: key);
    What are the implications to this, any videos where you explain?
    I am a beginner so sorry if its a stupid question.

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

    awesome...jazzakumullahu khoeron katsieron...

  • @PhatNguyen-bq2no
    @PhatNguyen-bq2no Рік тому

    This lesson help me a lot
    Thank you so much

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

    just land to this tutorial, like it and appriciate it, by the way on the minute 21.40 i like that sound of shipping of coffee.(:

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

    nice and easy to understand
    Thank you 😄

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

      You're welcome 😊

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

    When I initialize the controller inside the build function like you did. The values of the controller do not persist. And the controller gets deleted as soon as the page is shifted to next page. How is it happening in your implementation I have no Idea.

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

    simple and good tutorial .. thanks

  • @GabrielRamos-jl8fw
    @GabrielRamos-jl8fw Рік тому

    My Hero!

  • @user-vs4dk2mf7p
    @user-vs4dk2mf7p 3 місяці тому

    its informative.

    • @dbestech
      @dbestech  2 місяці тому

      Thanks for liking

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

    Thanks for the video, have you used the getx cli...it sets up everything so nicely...I hope you will do an app or a youtube video on that...your explanations are clear and well presented.
    I have been using only getx cli to scafold all my projects

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

      I will check it out

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

    Veery nice tutorial ..

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

    Your flutter payment app is good and very helpful

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

    Great tutorial 😀

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

    Well explained, was helpful and delicious coffee

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

    Thank you so much :)

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

    I remember your tutorial with firebase auth and getx landed me a better business..

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

    Wonderful concepts sir

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

    wa alaikum as Salam

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

    Thank you.

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

    thanks you very from senegal

  • @ronnyochieng9534
    @ronnyochieng9534 Місяць тому +1

    Thank u sir please create a video of api intergrations with Getx

    • @dbestech
      @dbestech  Місяць тому

      cool. I will try next week

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

    Thank you bro

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

    By the way what is best ?? to use Bloc of GetX its really confusing as new things arrive it becomes tough to switch between things every time a new thing comes, kindly suggest

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

      Must start with Getx and then learn more about others if you have time..

  • @user-yw8np2ph3w
    @user-yw8np2ph3w Рік тому

    居然是中文大佬,啥时候开播中文教程啊

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

  • @user-lf6db1zf2c
    @user-lf6db1zf2c Рік тому

    What is the good point to use getx comparing to flutter-normal state control, and other tools like riverpods?

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

      easier and productive.

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

    for big project is it best to fetch data always using global state management or is best to fetch data on each screen ?

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

      fetch data mostly based on each screen

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

    Salam Brother, which one good practice in programing big app, used GetBuilder or Obs?

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

      I think it's GetBuilder

  • @user-eu7or8pe6g
    @user-eu7or8pe6g Рік тому

    getx with getbuilder and api calling in flutter video bnao na

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

    Masha Allah Jazakallahu khairan

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

    There is one tutorial thats most awaited and missing in the internet. Firebase admin panel that can work with ride sharing apps or food delivery. Can you do something like it please ? Or point to a tutorial like that ?

    • @dbestech
      @dbestech  2 роки тому +2

      Hi Pannam, I am already making one e-commerce site for food delivery. I will release that one in a week or two.

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

      @@dbestech Will it have an admin panel as well ?

    • @dbestech
      @dbestech  2 роки тому +2

      @@chomanthapa Yes. It will have a complete backend.

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

    hello sir, please how can i close a Getx controller after changing page ?

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

      This link may help you learnflutter.co/how-to-dispose-remove-or-close-getx-controller/

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

    all tutorials i watched is all about simple increasing and decreasing value. How about changing bool value and changing string value and transferring it to another class? i want to put dark and light theme in my app with custom colors not in themeData but i cant make it work using statemanagement.

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

      It's extremely easy. I will release on

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

      @@dbestech thanks.. i really need it. here are my colors just for reference. I put it inside colors.dart and imported it to all classes and uses it:
      Color background = darkTheme ? const Color(0xFF040C23) : const Color(0xFFF8EBD4);
      Color textMain = darkTheme ? const Color(0xFFFFFFFF) : const Color(0xFF000000);
      Color text = darkTheme ? const Color(0xFFA19CC5) : const Color(0xFF575D5B);
      Color secondary = darkTheme ? const Color(0xFFA19CC5) : const Color(0xFF8789A3);
      Color orange = const Color(0xFFF9B091);
      Color primary = darkTheme ? const Color(0xFFA44AFF) : const Color(0xFF000000);
      Color circles = darkTheme ? const Color(0xFFA44AFF) : const Color(0xFF704214);
      Color gray = darkTheme ? const Color(0xFF121931) : const Color(0x59BBC4CE);
      Color gradient1 = darkTheme ? const Color(0xFFDF98FA) : const Color(0xFF704214);
      Color gradient2 = darkTheme ? const Color(0xFFB070FD) : const Color(0xFFA87242);
      Color gradient3 = darkTheme ? const Color(0xFF9055FF) : const Color(0xFFE2A674);

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

    Masha Allah jazakallahu khairan, you are so awesome man... i just started flutter any ideas of where i can start from ?

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

      First try to make simple UI. Understanding row, column and containers are very important for basic ui. and then try to understand setState(). And then slowly towards other library.

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

      @@dbestechok thanks very much brother, but inside uour videos do you have any i can start with first then gradually move on to another and also can you recommend a site where i can get mobile UI to be practicing with ?

  • @sanjeevgupta8956
    @sanjeevgupta8956 4 місяці тому

    Your font color is grt, how you do it?

    • @dbestech
      @dbestech  4 місяці тому

      ua-cam.com/video/Szy1wGfpVq0/v-deo.html this could help

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

    How do you use nested GetBuilder to inject multiple controllers? Is it possible?

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

      I have tutorials for it. You may search it

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

      @@dbestech thank you very much, I found it

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

    Sir, make a full caurse on how to make wallet app in flutter and laravel api

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

      We will try. But first we are working on the e-commerce site which we will upload soon

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

      @@dbestech add wallet function in e-commerce

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

      @@techliv9806 It will include payment gateway

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

    at 1:02:08 why RxInt get y = _y.value??
    in case of RxInt get z = _z.value

  • @user-tg5qw2wv5n
    @user-tg5qw2wv5n Рік тому

    in china?

  • @nam9338
    @nam9338 9 місяців тому

    In a complex app We should use GetBuilder or Obx

    • @dbestech
      @dbestech  9 місяців тому +1

      I used both for complex app. But I think obx is better.

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

    Bro how can i use double variable as obs

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

      Did you try Rxdouble x=0.0.obs?

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

      @@dbestech yes. But map latlng doesn't take rxdouble. Use double latlng= 0.00.obs() now it's working. Thank you for reply❤️❤️❤️.

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

    is this null safe ?

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

    Chinese? I am a half korean half white girl :)

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

    Bro create a ai radio app with flutter