Skip to content

divyashah0510/crud_app

Repository files navigation

crud_app

A new Flutter project.

Getting Started

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.

Dependencies

to be downloaded first

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.

Screenshots

Create, Read, Update, Delete operations.

  • Create: Add a new record to the database.

Screenshot 2024-04-07 231346

  • Read: Read all the records from the database.

Screenshot 2024-04-07 231252

  • Update: Update a record in the database.

Screenshot 2024-04-07 231425

  • Delete: Delete a record from the database.

Screenshot 2024-04-07 231023

For more references you could refer following link for firebase setup:

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published