Flutter | Firebase | Web Connection (2022)
2 min readMay 15, 2022
For adding firebase to your project (Android), check out the below article
For Web
Go to index.html file located inside the web folder
Add the below line just after <body>
Then next, add the following inside
<script type=”module”>
TYPE HERE…..
</script>
Final step,
inside main.dart file under WidgetsFlutterBinding.ensureInitialized();
Enter the below code
The details for this can be found in the firebase console project settings.
Details are mentioned under the General tab.
Hope this blog has solved any issues you faced when you connect to the web. Thank you for reading.