title: How to setup different firebase environments in Flutter
body: <p>I am trying to figure out how to set up different firebase environments in a flutter project.</p>
  
  <p>I understand how to do this in firebase, I created two projects, one for production, one for the test.  Then, in an iOS or Android project, I could use various methods to switch between these two environments using separate <code>google-services.json</code> or <code>GoogleServices-Info.plist</code> files.</p>
  
  <p>In Flutter I found <a href="https://flutter.rocks/2018/03/02/separating-build-environments-part-one/" rel="noreferrer">this</a> description of how to separate environments, but it only explains how to differentiate between environments in the flutter code.</p>
  
  <p>How can I get this environment to change what iOS and Android build at compile time?  It would even be sufficient simply to allow a file copy hook at build time.</p>