Last active
September 8, 2021 10:25
-
-
Save suinua/cac39610708b54523cfbbf581613563f to your computer and use it in GitHub Desktop.
dart2js firebase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="https://www.gstatic.com/firebasejs/3.2.1/firebase.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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