How karttiktungenwar/note_app works
Note App is a Flutter note-taking client with authentication and note CRUD. The documented user workflow is to sign in, retain a session token locally, then create, view, update, search, or delete notes; the README says the app integrates with a REST backend for user data and notes. The tree shows separate presentation, domain, data, networking, and local-storage areas. Dart implementation excerpts were not provided, so internal call ownership is unverified; dashed edges mark likely links, while README-backed product relationships are solid.
Main entry points: notes_page.dart Notes screen · note_repository_impl.dart Note repository · login_auth_repository_impl.dart Auth repository · main.dart App entry
Components 21
Flutter App
- App entry
lib/main.dart
Authentication
- Login screen
lib/src/features/login/presentation/screens/login_screen.dart - Login state
lib/src/features/login/presentation/bloc/login_auth_bloc.dart - Auth actions
lib/src/features/login/domain/usecase - Auth repository
lib/src/features/login/data/repository/login_auth_repository_impl.dart - Remote auth
lib/src/features/login/data/data_source/login_auth_remote_data_source.dart - Local auth
lib/src/features/login/data/data_source/login_auth_local_data_source.dart
Notes
- Notes screen
lib/src/features/notes/presentation/screens/notes_page.dart - Notes state
lib/src/features/notes/presentation/bloc/note_bloc.dart - Note list
lib/src/features/notes/presentation/widgets/note_list.dart - Note item
lib/src/features/notes/presentation/widgets/note_item.dart - Note form
lib/src/features/notes/presentation/widgets/note_form.dart - Note actions
lib/src/features/notes/domain/usecase - Note repository
lib/src/features/notes/data/repository/note_repository_impl.dart - Local notes source
lib/src/features/notes/data/data_source/note_local_data_source.dart
Data and Services
- Secure token store
lib/src/core/local_storage/secure_storage_service.dart - Login API
- Notes database
lib/src/core/database/app_database.dart - REST client
lib/src/core/network/api_service.dart - REST backend
Other components
- Note taker
Connections 22
- Note taker → App entry: uses
README.md - App entry → Login screen: offers sign-in
- Login screen → Login state: dispatches events
- Login state → Auth actions: invokes
- Auth actions → Auth repository: requests auth
- Auth repository → Remote auth: uses
- Auth repository → Local auth: uses
- Remote auth → Login API: sends login
README.md - Login API → REST backend: authenticates
README.md - Local auth → Secure token store: stores token
README.md - Note taker → Notes screen: manages notes
README.md - Notes screen → Notes state: dispatches actions
- Notes screen → Note list: presents notes
- Note list → Note item: renders
- Notes screen → Note form: edits notes
- Notes state → Note actions: invokes
- Note actions → Note repository: requests CRUD
- Note repository → Local notes source: uses
- Local notes source → Notes database: reads and writes
- Note repository → REST backend: persists notes
README.md - Note repository → REST client: uses REST client
- REST client → REST backend: exchanges data