enhanced_cloud_firestore 2.0.0 enhanced_cloud_firestore: ^2.0.0 copied to clipboard
A wrapper around the cloud firestore dart package with support for filtering sorting, limiting, error handling, and success scenarios
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'helpers/firebase_options.dart';
import 'screens/home.dart';
void main() async {
await dotenv.load(fileName: ".env");
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Enhanced Cloud Firestore Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const Home(),
);
}
}