Skip to content

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