Skip to content

Instantly share code, notes, and snippets.

@happyharis
Last active January 4, 2020 13:46
Show Gist options
  • Select an option

  • Save happyharis/7656839697bebbc0790bb4cb377a0c16 to your computer and use it in GitHub Desktop.

Select an option

Save happyharis/7656839697bebbc0790bb4cb377a0c16 to your computer and use it in GitHub Desktop.
import 'package:firebase/firebase.dart' as Firebase;
Future<void> main() async {
if (Firebase.apps.isEmpty) {
print(Firebase.apps);
Firebase.initializeApp(
apiKey: '',
authDomain: '',
databaseURL: '',
projectId: '',
storageBucket: '',
messagingSenderId: '',
appId: '',
);
}
runApp(MyApp());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment