Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide a State Management #2

Closed
WilfredAlmeida opened this issue Jul 11, 2022 · 11 comments
Closed

Decide a State Management #2

WilfredAlmeida opened this issue Jul 11, 2022 · 11 comments

Comments

@WilfredAlmeida
Copy link

Decide a state management package, developers have their preferences. Needs to be decided before conrtibutions begin.

I'd suggest the GetX State Management since:

  • It's easy to implement
  • Initializes controllers only once
  • Doesn't need context
  • In case of reinitialization of a controller, it'll check if there is any instance created and simply return it
  • It comes with other features like Storage, Navigation, Dialog, Snackbar, Network Calls etc.
@SirusCodes
Copy link

I would disagree with using GetX
It has a lot of things inbuilt but it comes at a cost. Cost of maintaining it. It has a huge API surface and what if one day the dev decides stop maintaining it. Then you have to not only migrate state management but also all the other things like navigation and dialogs and what not.

Also GetX acts like a whole new framework upon flutter.

I would suggest using BLoC or Provider/Riverpod as they are battle tested and does one thing right that is state management.

@moshOntong-IT
Copy link

Using very_good_cli is preferable. It use bloc state management.

@moshOntong-IT
Copy link

Using very_good_cli is preferable. It use bloc state management.

Please read the very_good_cli

@annurdien
Copy link

I'd suggest Riverpod

@vedantbahel
Copy link
Owner

Checked out this appwrite_flutter template https://github.com/lohanidamodar/flutter_appwrite_starter
the person uses Riverpod for state management. This looks good to add.

@AftabBagwan
Copy link

I'd suggest Riverpod too.

@vedantbahel
Copy link
Owner

Can someone take up this task to re-structure the code to add statement management using Riverpod? Also I need help with initializing appwrite in flutter?
@SirusCodes @annurdien @AftabBagwan

@SirusCodes
Copy link

I honestly cannot contribute with code rn as I already have a lot on my plate. I can help with issues and PR reviews.

We can do a project as features. Similar to what it gives with the skeleton example app

@DonnC
Copy link

DonnC commented Jul 11, 2022

Riverpod in my case
From Damodar who is also among the core appwrite team and his examples on flutter he also uses riverpod, not that he forcefully suggests it but i also go with riverpod here in the long run
GetX has mixed acceptance.

@Odinachi
Copy link

I would have loved to use cubit but it seems Riverpod will have it, in that case, that's cool too. so yes Riverpod.

@vedantbahel
Copy link
Owner

PR #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants