fire_flutter_db 0.0.1 fire_flutter_db: ^0.0.1 copied to clipboard
FlutterFire simplifies Firebase integration in Flutter apps, offering streamlined authentication and Firestore database operations through a clean and intuitive API.
import 'package:fire_flutter_db/src/components/googleSigninButton.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Future main() async {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const HomePage(),
);
}
}
class HomePage extends StatefulWidget {
const HomePage({super.key});
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('FlutterFire Example'),
),
body: SafeArea(
child: Column(
children: [
GoogleSigninButton(
extraFuntion: null,
),
],
),
),
);
}
}