An open API service indexing awesome lists of open source software.

https://github.com/sanaz-all/flutter-note-app

A simple Flutter note-taking app with local SQLite storage. Create, Edit, and delete your notes easily with a clean UI.
https://github.com/sanaz-all/flutter-note-app

android dart flutter notetakingapp object-oriented-programming oop

Last synced: 2 months ago
JSON representation

A simple Flutter note-taking app with local SQLite storage. Create, Edit, and delete your notes easily with a clean UI.

Awesome Lists containing this project

README

          

# flutter-note-app
A simple Flutter note-taking app with local SQLite storage. Create, Edit, and delete your notes easily with a clean UI.

# ๐Ÿ“ Flutter Note-Taking App

A simple and clean note-taking application built with Flutter and Dart. This app allows users to add, update, and delete personal notes. The data is stored locally using SQLite.

## ๐Ÿงช Screenshots





## ๐Ÿ“ฑ Features

- Add new notes with title and content
- Edit existing notes
- Delete unwanted notes
- Simple and minimal user interface
- Local data storage using SQLite

## ๐Ÿ› ๏ธ Tech Stack

- **Flutter** (UI Toolkit)
- **Dart** (Programming Language)
- **SQLite** (Local Database using sqflite package)

## ๐Ÿ“ Project Structure

The main Dart files used in this project:

### `main.dart`

The entry point of the app. It initializes the main UI and routes to the `NotePage`.

### `note_page.dart`

This is the main screen of the app that displays the list of notes. It handles:
- Fetching notes from the database
- Displaying them in a `ListView`
- Adding or updating notes through a dialog
- Deleting notes with a delete button

### `note.dart`

A simple `Note` model class that represents a note item with an optional `id`, a `title`, and `content`. It also includes:
- `toMap()` method for converting the object to a Map for SQLite
- `fromMap()` factory constructor for reconstructing a Note from a Map

### `database_helper.dart`

Handles all database operations including:
- Initializing and creating the database
- Inserting new notes
- Reading all notes
- Updating existing notes
- Deleting notes

โœ… **Important:**
These Dart files are part of a complete Flutter project. Make sure to place them in the proper directories within your Flutter project (e.g., inside `lib/`).

## ๐Ÿ“ฆ Dependencies

Add the following dependency to your `pubspec.yaml`:

```yaml
dependencies:
flutter:
sdk: flutter
sqflite: ^2.0.0+3
path: ^1.8.0
```
### ๐Ÿค Contributors
- [SanazAllahyari](https://github.com/Sanaz-all)
- [MasoudJanfashan](https://github.com/masoudjawnf)