Getting started with Firebase on Flutter - Firecasts

Firebase · 177K views · 2020 · 19:28

Open on YouTube

Web developmentSoftware practice, open source & careerstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the official walkthrough for Flutter and Firebase setup, citing specific steps such as the Android minSdkVersion, iOS configuration and the initializeApp() pattern.

Recommended by 4 people across 4 different months, 2021 to 2022.

What it is

A 19-minute Firecasts episode from the official Firebase channel in which Todd Kerpelman walks through adding Firebase to a Flutter app. It covers creating a project, Android and iOS setup, installing the FlutterFire libraries, initializing Firebase with a FutureBuilder, and a simple Realtime Database call.

What people said

Recommends bouraine · 2021-01 · Stack Overflow · on “Are there negative consequences for calling Firebase initializeApp() twice?”

you need this line `final Future _fbApp = Firebase.initializeApp();`only if you use a FutureBuilder as shown in [this video] otherwise use await. i made another answer on your post to explain why (See above).

Recommends Agung · 2021-09 · Stack Overflow · on “D8: Cannot fit requested classes in a single dex file”

you just need to update the minSdkVersion to be 21 as explained by the official Firebase team on this video on minute 04:45 [this video] . you don't need `implementation 'androidx.multidex:multidex:2.0.1'`

Recommends ismail · 2022-01 · Stack Overflow · on “CocoaPods error : Ignoring ffi-1.14.2 because its extensions are not built”

This is the solution that worked for me. follow this video : [this video] then open Podfile in ios folder and change : "# platform :ios, '9.0'" to "platform :ios, 'current_version_of_ios'" current_version_of_ios : is the real version of IOS in the moment you read this solution then before run the simulator : Delete the podfile.lock file from iOS folder after that go to ios folder and run a below command Pod install It will install all the packages which are in your podfile. Also, you need to set the target platform. Stay in the iOS folder and run below command open Runner.xcworkspace then your app will be open in XCode. Click on the "Runner" and set your target platform to 8.0. I fix my iOS build

Recommends yavuzyal · 2022-07 · Stack Overflow · on “Trying to connect Firebase to Flutter App”

I am not quite sure what the problem is since I can't see the error log but here is a quite good explanation of connecting Firebase to Flutter by the official Firebase Youtube channel: [this video]

Cites Mark Gavagan · 2021-01 · Stack Overflow · on “Are there negative consequences for calling Firebase initializeApp() twice?”

While Firebase.initializeApp() only needs to be called once, are there negative consequences for calling it twice? Background: I'm troubleshooting a [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() error and temporarily fixed it by adding await Firebase.initializeApp(); in void main() async in addition to my pre-existing final Future<FirebaseApp> _fbApp = Firebase.initializeApp(); Everything seems to work okay now. I intend to fix it, but if calling Firebase.initializeApp() twice isn't hurting anything, I can stick with my immediate priorities and move forward. Here's the relevant block of code: void main() async { WidgetsFlutterBinding .ensureInitia

Cites Mark Gavagan · 2021-01 · Stack Overflow · on “Are there negative consequences for calling Firebase initializeApp() twice?”

Thank you. The first call - ```await Firebase.initializeApp();``` - IS working, but I only added it, as a temporary fix, after the one that's subsequent in the code - ```final Future _fbApp = Firebase.initializeApp();``` - which I changed from ```await Firebase.initializeApp();``` per Google Firebase's official "Getting started with Firebase on Flutter - Firecasts" video at [this video]

Cites Martin Reindl · 2022-01 · Stack Overflow · on “Use Future with MaterialApp.router in main.dart”

SITUATION: I'm trying to set up firebase with my flutter project by following this guide by the firebase team. [this video] PROBLEM: In the final steps of the guide, a FutureBuilder widget is passed to the 'home' property of a MaterialApp widget. However, MaterialApp.router does not have a 'home' property, so I am struggling to complete the set-up (am new to flutter :-)). Any thoughts on how to solve this problem? // Import libraries import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import 'package:firebase_core/firebase_core.dart'; // Import custom widgets import 'views/landing_page.dart'; import 'views/info_page.dart'; // Initiate the app Future<void> main() asy