This repository contains the source code for the tutorial Building a Firebase Todo App: The Fun, Beginner-Friendly Way! 🚀 published on Medium. It walks you through the steps of creating a Flutter-based Todo app with Firebase Firestore integration for real-time data handling. This app is beginner-friendly, engaging, and scalable.
- Introduction
- Features
- Getting Started
- Dependencies
- Firebase Configuration
- License
- Contribution Guidelines
- Contact
Welcome to the Firebase Todo App! This project is a Flutter app that integrates with Firebase Firestore to manage tasks, showcasing features like real-time data updates, swipe-to-delete, and status toggling. Perfect for anyone looking to get started with Flutter and Firebase!
- 🛠 Add Todos: Add new tasks with a simple and intuitive interface.
- 📋 Mark as Completed: Use checkboxes to keep track of what you’ve done. Feel the productivity boost! ✅
- 💨 Real-Time Updates: Enjoy instant synchronization of todos across all devices using Firestore.
- 🧹 Swipe-to-Delete: Swipe an item to reveal the delete action, inspired by Gmail’s design. 🧹
-
Clone this repository:
git clone https://github.com/yourusername/firebase_todo_app.git cd firebase_todo_app
-
Install the required dependencies:
flutter pub get
-
Run the app:
flutter run
This app uses the following packages:
- firebase_core: For Firebase Firestore integration.
- cloud_firestore: Core package for connecting Flutter to Firebase.
- flutter: The core framework for building natively compiled applications for mobile, web, and desktop.
Make sure you have the following dependencies in your pubspec.yaml
:
dependencies:
flutter:
sdk: flutter
firebase_core: latest_version
cloud_firestore: latest_version
Android:
- Add the google-services.json file to android/app.
- Ensure you have the following in android/build.gradle:
dependencies {
classpath 'com.google.gms:google-services:4.4.2'
}
- And in android/app/build.gradle:
apply plugin: 'com.google.gms.google-services'
- Don’t forget to enable internet permission in AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET"/>
iOS:
- Add your iOS app in the Firebase Console.
- Download GoogleService-Info.plist and place it in your Xcode project under Runner/.
- Update the ios/Podfile and add the Firebase dependencies in Xcode:
platform :ios, '10.0'
use_frameworks!
- Add firebase_core initialization in AppDelegate.swift.
This project is licensed under the MIT License. Feel free to use, modify, and distribute as needed.
For more details, check out the LICENSE file.
Contributions are always welcome! If you'd like to contribute, feel free to submit a pull request or open an issue.
- Email: tech.ramakanttiwari@gmail.com
- Medium: @tech.ramakant
- LinkedIn: @tech-ramakant
- YouTube: @Tech.Ramakant
Thank you for checking out the repository! 🎉