How apicharburanapa/e_hong_app works
Project Type and Purpose
• This is a cross-platform mobile/desktop/web application built with Flutter (Dart).
• It targets Android, iOS, Linux, macOS, Windows, and the Web using a single codebase under lib/.
File Structure
• Top-level “platform” folders:
– android/ – Native Android embedding and Gradle build files
– ios/ – Native iOS embedding and Xcode project
– linux/, macos/, windows/ – Desktop embeddings via CMake and native runners
• Shared app logic in lib/:
– main.dart – Application entrypoint and route setup
– model/ – Domain objects (e.g., profile.dart)
– screen/ – UI pages (e.g., splash_screen.dart, login.dart, register.dart, home.dart)
• Configuration files:
– pubspec.yaml – Dart/Flutter dependencies and assets
– Platform build scripts, manifest/plist files, Gradle/Kotlin or Xcode configs
README Insights
• Standard Flutter starter README. No custom backend or external services are documented—this appears to be a standalone client app.
Main Components
a. Flutter App Core (Dart code)
– Presentation Layer: Widgets/screens in lib/screen/
– Domain/Data Layer: Models in lib/model/
– App Entrypoint: main.dart (routes/navigation)
b. Flutter Engine
– Dart VM (debug) or AOT compiled code (release)
– Skia rendering engine
c. Platform Embeddings
– Android (via Kotlin), iOS (via Swift/Obj-C), Desktop (C++ runners), Web (HTML/JS/CSS)
d. Operating Systems / Hardware
e. *(Optional)* External Services
Relationships and Data Flows
• User interactions → Flutter UI Widgets (screens)
• UI invokes domain logic / model classes (e.g., loading or saving Profile)
• Flutter core communicates with native platform for things like:
– Plugin calls (camera, file system, network) via MethodChannels
– Asset loading (images from assets/images)
• Rendering pipeline: Dart code → Flutter Engine → Skia → GPU/Canvas on host OS
• Build pipeline: flutter build apk/ios/… generates platform binaries
Architectural Patterns / Design Principles
• Layered Architecture
– Presentation (Widgets) → Business Logic (state management, services) → Data (models, repositories)
• Platform Abstraction
– Single codebase → multiple native embeddings
• Modularity
– Separate folders for models vs. screens
• Event-Driven / Reactive UI
– StatelessWidget / StatefulWidget driven by state changes
Detail Checklist
– [ ] Presentation Layer: list all screens (Splash, Welcome, Login, Register, Home)
– [ ] Domain Layer: Profile model
– [ ] App Entrypoint and Navigation in main.dart
– [ ] Flutter Engine block (Dart VM / AOT, Skia)
– [ ] Native Embeddings: Android, iOS, Linux, macOS, Windows, Web
– [ ] Assets: images and configuration (pubspec.yaml)
– [ ] Build Tools: Flutter CLI → Gradle / Xcode / CMake / Browser bundler