A simple and elegant To-Do List application built using Flutter and SharedPreferences for persistent local storage.
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
- Flutter
- Dart
shared_preferences– for local storagejsonEncode/jsonDecode– for converting task objects to/from storage
- 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
CheckboxListTileandCard
lib/
└── main.dart # Main application logic
- Flutter SDK: Install Flutter
- Android Studio / VS Code (or any Flutter-compatible IDE)
# 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 runTasks are represented by the Task class with a title and isCompleted flag, and are serialized using jsonEncode.
Tasks are saved as a list of JSON strings in SharedPreferences and restored at launch.
CheckboxListTileis 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.
- Task editing
- Filtering (e.g., show all, active, completed)
- Notification reminders
- Dark theme toggle
- Firebase integration for syncing tasks across devices
- Akshat Srivastava
- GitHub: @Akshat-Srivs