Secure Notes Package
Secure Notes is a Dart package that provides functionality to manage secure notes with SQLite database support. It includes features for adding, updating, deleting, and retrieving notes securely.
Features
- SQLite Database: Utilizes the
sqflite
package to manage notes in an SQLite database. - CRUD Operations: Supports basic CRUD operations - Create, Read, Update, Delete notes.
- Date Handling: Automatically manages note creation and modification dates.
Getting Started
To use this package, add secure_notes
as a dependency in your pubspec.yaml
file:
dependencies:
secure_notes: ^0.0.1
Then, run:
$ dart pub get
Usage
Import the Package
import 'package:secure_notes/secure_notes.dart';
Create a Note
final note = Note(
title: 'My Secure Note',
description: 'This is a secure note.',
);
Add a Note to the Database
final database = SecureNotesDatabase();
final addedNote = await database.addNote(note);
print('Added Note ID: ${addedNote.id}');
Get All Notes
final allNotes = await database.getAllNotes();
print('All Notes: $allNotes');