@duarda350
on
π NASA Space Lines
π°οΈ NASA API Integration
The project uses NASAβs Astronomy Picture of the Day API.
API endpoint:
The API key is provided at runtime using Flutterβs βdart-define mechanism.
Example:
flutter run -d chrome βdart-define=NASA_API_KEY=YOUR_API_KEY
Important
Do not commit your NASA API key to GitHub.
The project intentionally reads the API key using:
const apiKey = String.fromEnvironment(βNASA_API_KEYβ);
This keeps the key outside the source code.
Note: because this project runs on Flutter Web, values passed with βdart-define can ultimately be exposed in the client application. For a production application, a backend/proxy and appropriate API restrictions should be considered.
π οΈTechnologies
Technology Purpose Flutter Application framework Dart Programming language Flutter Web Web application runtime Material Design UI components NASA APOD API Astronomy data and media HTTP API communication JSON API data format VS Code Development environment Git Version control GitHub Source code repositoryπ Project Structure
Nasa_Space_Trip_App/
β
βββ android/
βββ ios/
βββ linux/
βββ macos/
βββ web/
βββ windows/
β
βββ assets/
β βββ imagens/
β βββ background.jpg
β βββ iss.png
β βββ mars.png
β βββ moon.png
β βββ neptune.png
β βββ saturn.png
β βββ sun.png
β
βββ lib/
β βββ screens/
β β βββ data/
β β β βββ planets.dart
β β β
β β βββ body_screen.dart
β β βββ home_screen.dart
β β βββ planet_detail_screen.dart
β β
β βββ services/
β β βββ nasa_service.dart
β β
β βββ main.dart
β
βββ test/
β
βββ pubspec.yaml
βββ pubspec.lock
βββ analysis_options.yaml
βββ README.md
π§ Traceability / Setup Table
The table below provides a quick traceability guide for developers who want to run, understand, or troubleshoot the project.
Step Component Location Purpose Verification
- 1 Flutter SDK Local environment Provides the development framework flutter βversion
- 2 Project dependencies pubspec.yaml Defines project packages flutter pub get
- 3 Assets assets/imagens/ Stores application images Check image files exist
- 4 Main entry point lib/main.dart Starts the application Run the project
- 5 Home screen lib/screens/home_screen.dart Application landing screen Home screen appears
- 6 Destination screen lib/screens/body_screen.dart Displays available destinations Destination list appears
- 7 Planet data lib/screens/data/planets.dart Stores destination information Destination cards load
- 8 Detail s
- 1 devlog
- 4h