How candyvelazco100/meperdonas_app works
Project Type and Purpose
• This is a cross‐platform Flutter application scaffold. It’s a client-only mobile/desktop/web app template that compiles Dart/UI code via the Flutter engine into native binaries or web artifacts. There is no backend service or database included—this is purely the front-end architecture.
Key Components (to include
a. Presentation Layer (lib/)
• main.dart → entry point
• Widgets, screens, business logic (state management classes)
b. Dependency/Plugin Layer
• pubspec.yaml → dependency graph
• Flutter packages/plugins (e.g., camera, HTTP, etc.)
c. Flutter Framework & Engine
• Dart VM (JIT for debug, AOT for release)
• Flutter Framework (widgets, rendering, gestures)
• Dart C++ engine
d. Platform Embedder Layers (one per platform)
• Android: Gradle, AndroidManifest, Kotlin MainActivity, AAR
• iOS/macOS: Xcode project, Swift/Obj-C AppDelegate, CocoaPods
• Web: index.html, manifest.json, Web renderer
• Desktop (Linux/macOS/Windows): CMake, native C++ runner, GLFW/Win32
e. OS / Hardware
• Underlying operating system, device hardware
Relationships & Data Flow
• User Interaction → Presentation Widgets
• Widgets call into Flutter Framework APIs
• Framework invokes Dart VM or native engine
• Engine communicates via the platform embedder
• Embedder calls into OS APIs (graphics, input, file I/O)
• Plugins use Platform Channels to bridge Dart ↔ native code
Architectural Patterns & Principles
• Layered Architecture: UI → Framework → Engine → OS
• Dependency Injection via pubspec (loose coupling to plugins)
• Single executable per platform, with platform-specific wrappers
• Clear separation: “Dart code” vs. “native embedder”
Detailed Elements to Capture
• lib/main.dart and subdirectories under lib/
• assets/images and their resolution buckets
• pubspec.yaml (dependencies) and pubspec.lock
• platform folders (android/, ios/, web/, windows/, linux/, macos/) with build scripts
• test/ directory for widget_test.dart (test harness)