Skip to content

Instantly share code, notes, and snippets.

@PeterHdd
Last active October 16, 2020 08:11
Show Gist options
  • Save PeterHdd/ec2526c40dfa2be223d719f39acf0df3 to your computer and use it in GitHub Desktop.
Save PeterHdd/ec2526c40dfa2be223d719f39acf0df3 to your computer and use it in GitHub Desktop.
article
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_database/firebase_database.dart';
import 'package:firebase_test/home.dart';
import 'package:flutter/material.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Pets',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Register Pet'),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment