-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.dart
70 lines (67 loc) · 1.7 KB
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import 'package:firestore_app/store.dart';
import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_core/firebase_core.dart';
import 'url.dart';
import 'buttons.dart';
import 'topic.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:random_color/random_color.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
Firebase.initializeApp();
runApp(MyApp());
}
var fs;
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
// TODO: implement build
Title() {
return Text(
'Linux - Firebase App',
style: TextStyle(
fontSize: 25,
color: Colors.black ,
fontWeight: FontWeight.bold ,
) ,
);
}
Leading_Icon() {
return Image.network(
'https://raw.githubusercontent.com/whoaks/Firebase_Integration_Flutter/master/firebase.JPG',
);
}
MyAppBar() {
return AppBar(
backgroundColor: Colors.cyanAccent,
title: Title(),
leading: Leading_Icon(),
actions: <Widget>[
Linkedin() ,
],
);
}
MyHome() {
return Scaffold(
appBar: MyAppBar() ,
backgroundColor: Colors.red[900],
body: Column(
children: <Widget>[
Topic("Linux Integration Flutter and Storing values in FileStore GCP Cloud" , 25.0) ,
PushButton() ,
PullButton() ,
LinuxButton(),
Firestore_url(),
Topic("Created by Akash Pandey" , 25.0 , ) ,
],),
);
}
fs=FirebaseFirestore.instance;
return MaterialApp(
home: MyHome(),
debugShowCheckedModeBanner: false,
);
}
}