Flutter notes app with local ObjectBox storage, Provider (ChangeNotifier), and a liquid glass Material 3 UI (blur on chrome only, for performance).
- Flutter SDK
^3.13(seepubspec.yaml) - For Android/iOS/desktop toolchains, follow Flutter install docs
flutter pub get
flutter runRelease APK:
flutter build apklib/
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
| 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 |
- Single
NotesNotifieris provided at the root inmain.dart. - Rebuild UI:
context.watch<NotesNotifier>() - Actions (no rebuild):
context.read<NotesNotifier>()
After changing @Entity() classes:
dart run build_runner build --delete-conflicting-outputsKeep lib/objectbox-model.json in version control.
- Active notes and archive (segmented control)
- Create (bottom sheet), edit, save, archive, restore, delete
- Theme: system → light → dark (app bar button)
NoteType keeps extra enum values (images, trashed, news) for existing database indices. The UI only uses normal and archives.