How thanhlh-vaix/vice-animation works
Project type and purpose
• This is a cross-platform mobile application built with Flutter (Dart) targeting Android & iOS.
• The app (“vice_app”) renders a list of magazine editions (home feature) and detailed magazine pages (magazines_details feature) using locally bundled assets.
File structure
• Top-level platform folders:
• android/ – native Android project wrapper & Gradle build files
• ios/ – native iOS Xcode project wrapper & CocoaPods files
• Dart source in lib/:
• lib/core/ – shared modules: app entrypoint, constants, theme, common widgets, domain entities
• lib/features/ – feature-driven layers:
– home/ – home screen UI & widgets
– magazines_details/ – details screen UI & widgets
• lib/main.dart – application entrypoint
• Assets in assets/img/ – magazine cover images, sample art
• Configuration: pubspec.yaml (dependencies), platform build scripts
README
• Standard Flutter starter README – confirms Flutter SDK usage.
• No remote API references: likely purely local data/asset-driven UI.
Main components & their relationships
a. Components:
• Mobile Device (Android / iOS)
• Flutter Engine & Framework
• App Layer (Dart code):
– Entry (main.dart)
– Core Module
· App setup & routing
· Theme & UI constants
· Shared domain entities
· Common widgets
– Feature Modules
· Home Feature (home_screen, list widgets)
· Magazine Details Feature (details_screen, page view widgets)
– Assets (images)
• Native Embedding (Android Activity / iOS AppDelegate)
b. Interactions:
• At launch: Native shell → Flutter engine → main.dart
• UI navigates between Home & Details via Flutter Navigator
• UI widgets consume domain entities & theme constants from Core
• Widgets load images from the assets bundle
c. Architectural patterns & principles:
• Feature-based modularization (core vs. feature)
• Layered separation: Presentation (screens & widgets) ↔ Domain (entities)
• Single entrypoint, shared theme & constants
d. Key technologies:
• Flutter framework (Dart)
• Gradle & Android SDK / CocoaPods & Xcode for native shells
• Asset bundling via pubspec.yaml