Flutter Riverpod vs Getx | Converting to Riverpod

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 มี.ค. 2023
  • Let's see the difference between Getx and Riverpod step by step. It's a riverpod tutorial example with counter app.
    www.dbestech.com/tutorials/fl...
    🔥🔥🔥🔥🔥🔥Flutter Riverpod tutorial
    GetX Bible
    www.dbestech.com/tutorials/fl...
    Twitter @dbestech
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 36

  • @Bootngoals
    @Bootngoals ปีที่แล้ว +1

    Great tutorial like always.

    • @dbestech
      @dbestech  ปีที่แล้ว

      Thanks again!

  • @savyy43
    @savyy43 ปีที่แล้ว

    this was so amazing thanks

    • @dbestech
      @dbestech  ปีที่แล้ว

      Most welcome

  • @florian_laforest
    @florian_laforest ปีที่แล้ว

    Nice Video but how to update state for an AsyncNotifier with copyWith?

  • @linuxland
    @linuxland ปีที่แล้ว +1

    I don't get why you are using equitable, state notifier can directly track and update counter value without the equitable class, that is the recommended way of using riverpod, you can also easily create a generic notifier and then create what ever provider types you want with families and auto dispose, I learned riverpod as my first state management library and haven't used anything since, I only got better at riverpod, it has helped me through some interesting use cases like tracking a step functions execution without web sockets, getx seems simple enough too, I just don't see a reason to try something new at the moment.

  • @user-yv7hk7tg2f
    @user-yv7hk7tg2f 6 หลายเดือนก่อน

    explain very detail

    • @dbestech
      @dbestech  6 หลายเดือนก่อน

      Keep watching and sharing

  • @maitregiga5618
    @maitregiga5618 ปีที่แล้ว +1

    Riverpod is super interesting but despite all the bad things said about getX I think it's still the best of all, you just have to know how to use it effectively.

    • @dbestech
      @dbestech  ปีที่แล้ว +1

      yes, you are right.

  • @Tuanavici
    @Tuanavici ปีที่แล้ว

    What is the software?

    • @dbestech
      @dbestech  ปีที่แล้ว

      what software ? you mean the app name?

  • @michaelamir6504
    @michaelamir6504 ปีที่แล้ว

    You haven't made any use of the bindings feature in GetX. Also, in this scenario, Riverpod haven't added anything useful to the project.

    • @dbestech
      @dbestech  ปีที่แล้ว

      in this simple example you don't need bindings. If you think this did not add anything, then riverpod official did not do anything useful

  • @ni_kabiu_john
    @ni_kabiu_john ปีที่แล้ว

    😅😊

    • @dbestech
      @dbestech  ปีที่แล้ว

      You don’t like Riverpod?

  • @Maystro_eg
    @Maystro_eg ปีที่แล้ว

    I Think GetX is easier to use and has many features not just state management

    • @dbestech
      @dbestech  ปีที่แล้ว +1

      yes, true

  • @dolbysoundsofficial9323
    @dolbysoundsofficial9323 ปีที่แล้ว

    In riverpod I don't understand why your using complex approach you can just use StateProvider instead write whole boilerplate code I suggest before Making any kind of video just Read Docs or Just do some research

    • @dbestech
      @dbestech  ปีที่แล้ว +1

      For big projects you need to separate code. Docs are just for todo apps. In larger app, you need to separate your state variables from providers. This way your code structure is clean and reusable. And you can reuse the same code easily in other projects

    • @dolbysoundsofficial9323
      @dolbysoundsofficial9323 ปีที่แล้ว

      @@dbestech what todo app just check lates Riverpod docs 2.O But my point is Your performing Simple Counter App in complex way Beginner Getx Assuming Riverpod is Hard to learn Actually It's More offers Features

    • @dbestech
      @dbestech  ปีที่แล้ว

      @@dolbysoundsofficial9323 I was sharing the code structure for big projects. But if you just compare getx and Riverpod, getx provides way more features. Yes, Riverpod has some édges too

    • @dolbysoundsofficial9323
      @dolbysoundsofficial9323 ปีที่แล้ว

      @@dbestech ok gotted no issue. more feature in terms of state management? I think we are talking about state management solutions

  • @fredrickobarafor547
    @fredrickobarafor547 ปีที่แล้ว +4

    With Getx single lines of code. Why will stress myself writing riverpod 😂

    • @dbestech
      @dbestech  ปีที่แล้ว

      Yes, that’s true. But many people many minds

    • @fredrickobarafor547
      @fredrickobarafor547 ปีที่แล้ว

      @@dbestech Any main difference between Getx and riverpod apart from lines of code.

    • @dbestech
      @dbestech  ปีที่แล้ว +1

      @@fredrickobarafor547 nope. Getx still gets more votes

    • @justinprakashraj6256
      @justinprakashraj6256 ปีที่แล้ว +1

      Bloc scalability and testable

    • @blackshadowsoftware5307
      @blackshadowsoftware5307 ปีที่แล้ว +1

      read the docs. riverpod is not complex, as you think.

  • @blackshadowsoftware5307
    @blackshadowsoftware5307 ปีที่แล้ว

    riverpod is not complex as you have shown.

    • @dbestech
      @dbestech  ปีที่แล้ว

      Riverpod is complex for beginners comparing with Getx