Skip to content

Akshat-Srivs/To_Do_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

✅ To-Do App

A simple and elegant To-Do List application built using Flutter and SharedPreferences for persistent local storage.


📱 Overview

This app allows users to:

  • 📝 Add tasks
  • ✅ Mark tasks as completed
  • 🗑️ Automatically remove completed tasks
  • 💾 Save tasks locally using SharedPreferences
  • 📱 Enjoy a clean Material UI with responsive behavior

🛠️ Built With

  • Flutter
  • Dart
  • shared_preferences – for local storage
  • jsonEncode/jsonDecode – for converting task objects to/from storage

📦 Features

  • Task creation with a dialog input
  • Real-time updates using setState()
  • Local persistence of task list using SharedPreferences
  • Automatic removal of completed tasks
  • Snackbar feedback on add/delete
  • Clean UI with CheckboxListTile and Card

📁 Folder Structure

lib/
└── main.dart          # Main application logic

🚀 Getting Started

🔧 Prerequisites

  • Flutter SDK: Install Flutter
  • Android Studio / VS Code (or any Flutter-compatible IDE)

🛠️ Installation

# Clone the repo
git clone https://github.com/Akshat-Srivs/To_Do_App.git
cd To_Do_App

# Install dependencies
flutter pub get

# Run the app
flutter run

📂 How It Works

Task Model

Tasks are represented by the Task class with a title and isCompleted flag, and are serialized using jsonEncode.

Persistence

Tasks are saved as a list of JSON strings in SharedPreferences and restored at launch.

UI

  • CheckboxListTile is used to display each task.
  • Completed tasks are removed automatically with a strike-through effect before deletion.
  • Snackbar feedback appears when tasks are added or completed.

💡 Future Improvements (Optional)

  • Task editing
  • Filtering (e.g., show all, active, completed)
  • Notification reminders
  • Dark theme toggle
  • Firebase integration for syncing tasks across devices

🧑‍💻 Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors