Skip to content
kmcitePublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Notes

Flutter notes app with local ObjectBox storage, Provider (ChangeNotifier), and a liquid glass Material 3 UI (blur on chrome only, for performance).

Requirements

  • Flutter SDK ^3.13 (see pubspec.yaml)
  • For Android/iOS/desktop toolchains, follow Flutter install docs

Quick start

flutter pub get
flutter run

Release APK:

flutter build apk

Project layout

lib/
  main.dart                 # Provider root + bootstrap
  app/                      # MaterialApp shell + rootNavigatorKey
    notes_app.dart
  state/                    # UI state (Provider)
    notes_notifier.dart
    theme_preference.dart
  data/
    local/notes_service.dart # ObjectBox CRUD + watch stream
    models/                  # Entities + enums
  features/notes/            # Screens for the notes flow
  theme/liquid/              # Palette + Liquid* UI widgets
  objectbox.g.dart           # Generated — do not edit by hand
  objectbox-model.json       # ObjectBox schema — commit to git

Where to change what

Goal Start here
New screen / flow lib/features/notes/
List/editor/draft logic lib/state/notes_notifier.dart
Database / queries lib/data/local/notes_service.dart
Entity fields lib/data/models/note_model.dart then regenerate ObjectBox
Colors, typography, liquid UI lib/theme/liquid/liquid_palette.dart, liquid_components.dart
Light/dark/system theme toggle theme_preference.dart + app bar in home_screen.dart

State management

  • Single NotesNotifier is provided at the root in main.dart.
  • Rebuild UI: context.watch<NotesNotifier>()
  • Actions (no rebuild): context.read<NotesNotifier>()

ObjectBox codegen

After changing @Entity() classes:

dart run build_runner build --delete-conflicting-outputs

Keep lib/objectbox-model.json in version control.

Features

  • Active notes and archive (segmented control)
  • Create (bottom sheet), edit, save, archive, restore, delete
  • Theme: system → light → dark (app bar button)

Legacy note types

NoteType keeps extra enum values (images, trashed, news) for existing database indices. The UI only uses normal and archives.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages