This Flutter application provides detailed information about SpaceX's latest launch, including:
- A YouTube video of the launch.
- A link to the Reddit discussion page.
- A Wikipedia page with detailed information about the launch.
The app utilizes the following packages:
dio
for making HTTP requests.youtube_player_flutter
for embedding YouTube videos.webview_flutter
for displaying web pages.
- Fetch and display details about the latest SpaceX launch.
- Embed and play a YouTube video of the launch.
- Provide links to the Reddit discussion page and Wikipedia page.
- Display these web pages within the app using web views.
- Flutter SDK: >= 2.5.0
- Dart: >= 2.12.0
dio
: For making HTTP requests to fetch launch data.youtube_player_flutter
: For embedding and playing YouTube videos.webview_flutter
: For displaying Reddit and Wikipedia pages within the app.
Ensure you have the Flutter SDK installed. You can download it from Flutter's official site.
BURAYI DUZELT
- Clone the repository:
git clone https://https://github.com/SADIK1703/spacex_last_flight.git cd spacex_last_flight flutter pub get flutter run
📦lib
┣ 📂models
┃ ┗ 📜spacex_flight_model.dart
┣ 📂services
┃ ┗ 📜request_services.dart
┣ 📂utils
┃ ┣ 📜.request.rest
┃ ┣ 📜.response.http
┃ ┣ 📜constants.dart
┃ ┗ 📜globals.dart
┣ 📂views
┃ ┣ 📂custom_widgets
┃ ┃ ┗ 📜custom_appbar.dart
┃ ┗ 📂main_page_view
┃ ┃ ┣ 📜buttons.dart
┃ ┃ ┣ 📜main_info.dart
┃ ┃ ┣ 📜web_page.dart
┃ ┃ ┗ 📜youtube_player.dart
┣ 📂view_models.dart
┃ ┗ 📜flight_info_view_model.dart
┗ 📜main.dart \
-
main.dart: Initializes global values, fetches the latest flight information, and starts the app.
-
services/request_service.dart: Manages fetching the latest SpaceX launch details using dio.
-
views/home_page.dart: Displays launch details and provides navigation to YouTube video, Reddit page, and Wikipedia page.
-
views/youtube_video_page.dart: Embeds and plays YouTube videos using youtube_player_flutter.
-
views/webview_page.dart: Displays Reddit and Wikipedia pages within the app using webview_flutter.
-
widgets/custom_app_bar.dart: Provides a custom app bar widget for consistent app design.
This application provides users with the latest information on SpaceX launches, including video, discussions, and detailed information. Ensure all dependencies are installed and configured properly before running the app. If you encounter any issues, refer to the official documentation of each package used.