What is the difference between firebase_core and firebase_core_web packages for Flutter web?


I want to create a Flutter web project. I see two packages listed on the package page. What is the difference between the two?
firebase_core and firebase_core_web


firebase_core_web is a part of firebase_core, check the dependencies in the pubspec.yaml of source code. If you add firebase_core to your dependencies, it will include firebase_core_web as well. But you have to add different scripts to your index.html as well for Firebase to work on web.

Answered By – Peter Koltai

Answer Checked By – Marilyn (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *