This is a simple todo application built using Flutter framework, with Hive as the database management solution. It allows users to create, update, delete, and mark tasks as completed.
- Add new tasks with title
- Mark tasks as completed
- Delete tasks
- Store tasks locally using Hive database
These instructions will help you set up and run the project on your local machine.
- Make sure you have Flutter installed on your machine. If not, you can follow the official installation guide here.
- Basic knowledge of Flutter and Dart programming language.
- Clone the repository to your local machine:
git clone https://github.com/kaybrian/flutter_tod.git
- Navigate to the project directory:
cd flutter_tod
- Install dependencies:
flutter pub get
- Run the application:
flutter run
- Upon launching the app, you'll be presented with a list of tasks (Default tasks are shown).
- To add a new task, tap on the '+' button and fill in the required details.
- To mark a task as completed, simply tap on the checkbox next to the task.
- To delete a task, swipe left on the task and confirm deletion.
Hive is used as the database solution for this application. It is a lightweight and fast key-value database written in Dart. Hive stores data in the form of boxes, which act like tables in a traditional database. In this app, each task is stored as a box entry.
- Add Hive and path_provider dependencies to your
pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
hive: ^2.0.4
hive_flutter: ^1.1.0
path_provider: ^2.0.2