Skip to content

Instantly share code, notes, and snippets.

@suinua
Last active September 8, 2021 10:25
Show Gist options
  • Select an option

  • Save suinua/cac39610708b54523cfbbf581613563f to your computer and use it in GitHub Desktop.

Select an option

Save suinua/cac39610708b54523cfbbf581613563f to your computer and use it in GitHub Desktop.
dart2js firebase
<script src="https://www.gstatic.com/firebasejs/3.2.1/firebase.js"></script>
void main() {
fb.initializeApp(
apiKey: '',
authDomain: '',
databaseURL: '',
projectId: '',
storageBucket: '');
var storage = fb.storage();
storage.ref('---.json').getDownloadURL().then((url) {
HttpRequest.request(Uri.decodeFull(url.toString())).then((request) {
var json = jsonDecode(request.response);
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment