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

Updated providers with riverpod #259

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

davidetarsi
Copy link

@davidetarsi davidetarsi commented Jan 29, 2025

This pull request refactors the project to replace static classes with Riverpod providers to improve state management and code maintainability.

Changes made:

  • Integrated the riverpod library to manage application state using providers.
  • Refactored widgets to consume state through Riverpod’s ConsumerWidget and ref.watch() where necessary.
  • Improved dependency injection and modularity across the codebase.
  • Used the built-in code generator to create Riverpod's providers

Benefits:

  • Enhanced code scalability and flexibility.
  • Improved testing capabilities by decoupling business logic from static dependencies.
  • Adherence to Flutter development best practices with modern state management.

Notes for reviewers:

Please check for any overlooked state-sharing dependencies or potential performance bottlenecks after this refactor.

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

Successfully merging this pull request may close these issues.

1 participant