How to add Dependency Injection in Flutter with Provider
Flutter has a guide on using the provider package that could help you out. https://flutter.dev/docs/development/data-and-backend/state-mgmt/simple It'll be helpful if you could be more specific with the issue that you're having with provider.