How rachel-huthwaite/petty_university works
pettyUniversity is a Flutter venting-and-reflection app. A user creates a case by writing freely, decides whether to unpack it, names the underlying need, and may take an optional mindfulness pause; the case is then closed and retained alongside the need. The README documents the app’s navigation, local case persistence, and screen flow. Authentication components are visible in the tree, but their runtime wiring was not sampled, so those relationships are left unverified.
Main entry points: case_provider.dart Case state and persistence · main.dart App entry and routing · home_screen.dart Home screen · add_entry_screen.dart Vent and view case
Components 21
App and access
- App entry and routing
lib/main.dart - Auth gate
lib/widgets/auth_gate.dart - Login screen
lib/screens/login_screen.dart - Authentication service
lib/services/auth_service.dart
Case management
- Home screen
lib/screens/home_screen.dart - Vent and view case
lib/screens/add_entry_screen.dart - Case archive and filters
lib/screens/cases_screen.dart - Case state and persistence
lib/providers/case_provider.dart - Case entry model
lib/models/case_entry.dart
Unpack reflection
- Unpack decision
lib/screens/unpack/unpack_prompt_screen.dart - Name the need
lib/screens/unpack/name_need_screen.dart - Select or write need
lib/screens/unpack/select_needs_screen.dart - Mindfulness choice
lib/screens/unpack/mindfulness_prompt_screen.dart - Mindfulness timer
lib/screens/unpack/mindfulness_timer_screen.dart
Shared services
- Local preferences
- Theme and constants
lib/theme/app_theme.dart - App constants
lib/theme/app_constants.dart - Glass container
lib/widgets/glass_container.dart - Pill button
lib/widgets/pill_button.dart
Other components
- User
- Firebase Authentication
Connections 17
- User → App entry and routing: opens app
README.md - App entry and routing → Home screen: routes to
README.md - Home screen → Vent and view case: starts entry
README.md - Home screen → Case archive and filters: opens archive
README.md - Vent and view case → Case state and persistence: saves case
README.md - Case state and persistence → Case entry model: manages
README.md - Case state and persistence → Local preferences: persists locally
README.md - Case archive and filters → Case state and persistence: reads cases
README.md - Vent and view case → Unpack decision: offers unpacking
README.md - Unpack decision → Name the need: continues reflection
README.md - Name the need → Select or write need: opens selection
README.md - Select or write need → Case state and persistence: closes case
README.md - Select or write need → Mindfulness choice: offers pause
README.md - Mindfulness choice → Mindfulness timer: starts timer
README.md - App entry and routing → Auth gate: configures access
- Auth gate → Login screen: routes to
- Authentication service → Firebase Authentication: uses authentication