How thatyearus/udaadaa works
Project type and purpose
• This is a cross-platform Flutter full-stack application (“udaadaa”) for tracking diet, weight, challenges, social feed, and chat functionality.
• The front-end is a Flutter app targeting Android, iOS, Web, macOS, Linux, and Windows.
• The back-end is powered by Supabase (PostgreSQL database + edge functions + RLS).
File structure
• Top-level “android”, “ios”, “linux”, “macos”, “windows”, “web” folders: platform-specific Flutter embedding.
• “lib/” folder subdivided into:
• cubit/ + state files: BLoC/Cubit state management.
• data/: network client (Dio).
• service/: notification, shared-preferences.
• models/: domain entities (Profile, Feed, Message, etc.).
• utils/: constants, analytics, theme.
• view/: UI screens organized by feature (onboarding, home, chat, feed, form, etc.).
• widgets/: reusable UI components.
• “supabase/” folder with:
• config.toml, migrations/*.sql: database schema & RLS policies.
• functions/*/index.ts: serverless edge functions for custom logic (e.g., message-push, get-room-id).
• CI workflows in “.github/workflows”: build, staging pipelines.