Flutter Riverpod vs Getx | Converting to Riverpod

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 9. 03. 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
  • Věda a technologie

Komentáƙe • 36

  • @Bootngoals
    @Bootngoals Pƙed rokem +1

    Great tutorial like always.

  • @savyy43
    @savyy43 Pƙed rokem

    this was so amazing thanks

  • @user-yv7hk7tg2f
    @user-yv7hk7tg2f Pƙed 6 měsĂ­ci

    explain very detail

    • @dbestech
      @dbestech  Pƙed 5 měsĂ­ci

      Keep watching and sharing

  • @maitregiga5618
    @maitregiga5618 Pƙed rokem +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.

  • @florian_laforest
    @florian_laforest Pƙed rokem

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

  • @linuxland
    @linuxland Pƙed rokem +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.

  • @ni_kabiu_john
    @ni_kabiu_john Pƙed rokem

    😅😊

    • @dbestech
      @dbestech  Pƙed rokem

      You don’t like Riverpod?

  • @Tuanavici
    @Tuanavici Pƙed rokem

    What is the software?

    • @dbestech
      @dbestech  Pƙed rokem

      what software ? you mean the app name?

  • @michaelamir6504
    @michaelamir6504 Pƙed rokem

    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  Pƙed rokem

      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

  • @Maystro_eg
    @Maystro_eg Pƙed rokem

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

  • @fredrickobarafor547
    @fredrickobarafor547 Pƙed rokem +4

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

    • @dbestech
      @dbestech  Pƙed rokem

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

    • @fredrickobarafor547
      @fredrickobarafor547 Pƙed rokem

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

    • @dbestech
      @dbestech  Pƙed rokem +1

      @@fredrickobarafor547 nope. Getx still gets more votes

    • @justinprakashraj6256
      @justinprakashraj6256 Pƙed rokem +1

      Bloc scalability and testable

    • @blackshadowsoftware5307
      @blackshadowsoftware5307 Pƙed rokem +1

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

  • @dolbysoundsofficial9323
    @dolbysoundsofficial9323 Pƙed rokem

    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  Pƙed rokem +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 Pƙed rokem

      @@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  Pƙed rokem

      @@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 Pƙed rokem

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

  • @blackshadowsoftware5307
    @blackshadowsoftware5307 Pƙed rokem

    riverpod is not complex as you have shown.

    • @dbestech
      @dbestech  Pƙed rokem

      Riverpod is complex for beginners comparing with Getx