MandiriNews-App-by-Samuel-Sihotang

所属分类:Dart语言编程
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2024-04-03 08:05:55
上 传 者sh-1993
说明:  Mandiri News App是一款基于Flutter的移动应用程序,为用户提供从新闻API获取的最新新闻文章,提供无缝、直观的新闻阅读体验。
(The Mandiri News App is a Flutter-based mobile application that provides users with up-to-date news articles fetched from the News API, offering a seamless and intuitive news reading experience.)

文件列表:
android/
ios/
lib/
linux/
macos/
test/
web/
windows/
.metadata
LICENSE.txt
MandiriNews.apk
analysis_options.yaml
devtools_options.yaml
pubspec.lock
pubspec.yaml

#### My Rakamin Profile : https://www.rakamin.com/profile/samuel-christy-angie-sihotang-5p7emngha7n1tz5b # Mandiri News App This Flutter application fetches news articles from an API and displays them in a user-friendly interface. Below is a breakdown of the code structure and its functionalities: ## Table of Contents - [Introduction](https://github.com/samuelsihotang1/MandiriNews-App-by-Samuel-Sihotang/blob/master/#introduction) - [Dependencies](https://github.com/samuelsihotang1/MandiriNews-App-by-Samuel-Sihotang/blob/master/#dependencies) - [File Structure](https://github.com/samuelsihotang1/MandiriNews-App-by-Samuel-Sihotang/blob/master/#file-structure) - [How to Use](https://github.com/samuelsihotang1/MandiriNews-App-by-Samuel-Sihotang/blob/master/#how-to-use) ## Introduction The Mandiri News App allows users to stay updated with the latest news. It fetches data from the [News API](https://github.com/samuelsihotang1/MandiriNews-App-by-Samuel-Sihotang/blob/master/https://newsapi.org/), presenting top headlines and everything news articles. The app utilizes Flutter and Provider package for state management. ## Dependencies - [Dio](https://github.com/samuelsihotang1/MandiriNews-App-by-Samuel-Sihotang/blob/master/https://pub.dev/packages/dio): A powerful HTTP client for Dart, used for making network requests. - [Intl](https://github.com/samuelsihotang1/MandiriNews-App-by-Samuel-Sihotang/blob/master/https://pub.dev/packages/intl): Provides internationalization and localization support, used for date formatting. ## File Structure - **lib/main.dart**: Entry point of the application. Sets up the main UI and initializes the Provider for managing news data. - **lib/utils/const.dart**: Contains constant values like API base URL and API key. - **lib/providers/news.provider.dart**: Defines a Provider class to manage news data fetching and state. - **lib/pages/articles_details_page.dart**: Displays details of a selected news article. - **lib/models/topNews.model.dart**: Defines data models for news articles and sources. - **lib/helpers/api.dart**: Contains a function for making API requests using Dio. - **lib/components/customListTile.dart**: Widget for displaying individual top news articles with a custom design. - **lib/components/everythingList.dart**: Widget for displaying individual everything news articles with a custom design. ## How to Use To run the Mandiri News App: 1. Clone this repository to your local machine. 2. Ensure you have Flutter installed on your machine. 3. Navigate to the project directory and run `flutter pub get` to install dependencies. 4. Run the app using `flutter run`. 5. Build the app to be apk using `flutter build apk`.

近期下载者

相关文件


收藏者