How oscarbz-011/app_fluter_tfg works
Main Components
• Flutter Application (UI/logic layer): The core of the project lives in the lib directory. It includes:
• lib/main.dart – the entry point.
• lib/Models – for data models.
• lib/src which is further subdivided into functional areas like map, menu, news, news_details, and report.
• Platform-specific Integration:
• Android folder: Contains native Android project files and configuration.
• iOS folder: Contains Xcode project files, storyboards, and plist configurations.
• Assets and Configuration:
• Configuration files like pubspec.yaml, environment files (.env) and IDE settings.
Relationships and Interactions
• The Flutter UI layer interacts with the underlying business logic and data models defined in the lib directory.
• The functional modules (map, menu, news, etc.) likely communicate with each other through shared states or navigation flows.
• The native platform directories (android and ios) enable access to device-specific functionalities but primarily serve as the shell to run the bundled Flutter app.
Architectural Patterns and Design Principles
• Separation of Concerns: The project separates user interface (lib directory components), data models (Models), and domain-specific functionality (segmented under lib/src). This is similar to a clean architecture or layered approach.
• Modular Design: Each functional piece (like news, map, report) is organized into its own subdirectory, suggesting that the app can grow by adding or modifying modules independently.
• Platform Abstraction: The distinct android and ios folders illustrate the Flutter approach of abstracting UI code away from platform-specific code.