some configuration to flutter app when connecting firebase flutter SDK

Thilina Dilshan
Dec 25, 2020

--

Go to app level build.gradle and add these things

defaultConfig{

multiDexEnabled true

}

dependencies{

implementation ‘com.android.support:multidex:1.0.3’

}

Then add these dependencies for pubspec.yml

firebase_core : ^0.5.0

Then initialize the app

import ‘package:firebase_core/firebase_core.dart’;

void main() async {

WidgetsFlutterBinding.ensureInitialized();

await Firebase.initializeApp();

runApp(MyApp());

}

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Thilina Dilshan
Thilina Dilshan

Written by Thilina Dilshan

Software developer , love to learn

No responses yet

Write a response