A new Flutter project.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
npm install -g flutter_cli
firebase login
flutter pub activate flutter_cli
flutterfire configure
flutter pub add cloud_firestore
flutter pub add firebase_core
- Now you need to connect the Firebase app created by you on FireBase console through below code in
main.dart
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: const FirebaseOptions(
apiKey: 'your_api_key',
appId: 'your_app_id',
messagingSenderId: 'your_messaging_sender_id',
projectId: 'your_project_id',
authDomain: 'your_auth_domain',
storageBucket: 'your_storage_bucket',
),
);
runApp(const MyApp());
}
You can copy the apikeys and other fields when you run the command flutterfire configure
and paste it in the above code.
Create, Read, Update, Delete operations.
- Create: Add a new record to the database.
- Read: Read all the records from the database.
- Update: Update a record in the database.
- Delete: Delete a record from the database.
This project is licensed under the MIT License - see the LICENSE.md file for details