Git Product home page Git Product logo

samuelsihotang1 / mandirinews-app-by-samuel-sihotang Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21.74 MB

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.

License: GNU General Public License v3.0

Kotlin 0.19% Swift 2.69% Objective-C 0.06% Dart 24.71% HTML 2.88% CMake 30.25% C++ 37.00% C 2.22%
app dart flutter mandiri pbi rakamin-academy

mandirinews-app-by-samuel-sihotang's Introduction

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

The Mandiri News App allows users to stay updated with the latest news. It fetches data from the News API, presenting top headlines and everything news articles. The app utilizes Flutter and Provider package for state management.

Dependencies

  • Dio: A powerful HTTP client for Dart, used for making network requests.
  • 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.

mandirinews-app-by-samuel-sihotang's People

Contributors

samuelsihotang1 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.