Unable to switch to different environment using Flutter pub Injectable
I am currently facing an issue after upgrading my application to injectable version 2.5.0. There are two main environments the app uses - "prod" and "demo", each one with their own SQLLite database injectable modules. After updating, the app now always defaults to the production environment and uses the production database, even when demo mode is selected and getIt.init(environment: 'demo') is called. I stepped through the injectable pub's code, and it appears that it keeps defaulting the environmentFilter object value to "prod." So, after looking at the documentation on the injectable pub's w
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.