Daniel
Daniel

Reputation: 21

How to implement handling of environment with flutter/supabase?

I started with flutter and chose supabase as my backend for some reasons. I can use 2 projects there. So I wanna use one for development/test and one for production later. How should I implement the flutter app in handling these environments properly?

Cheers

No idea how to implement the handling of dev and prod environment in flutter app

Upvotes: 0

Views: 59

Answers (1)

KULDEEP GUPTA
KULDEEP GUPTA

Reputation: 104

You can use flutter_dotenv package for handle environment flutter_dotenv

or

You can create a class which handle keys according package/build Id.

package_info_plus and rename these help you to do so.

Upvotes: 0

Related Questions