Skip to content

Flutter Habar App is a mobile application that allows users to browse news articles from various sources. The app is built with Flutter and consumes data from the NewsAPI service.

License

Notifications You must be signed in to change notification settings

muhariananda/flutter_habar_app

Repository files navigation

Flutter Habar App

style: very good analysis

Flutter Habar App is a mobile application that allows users to browse news articles from various sources. The app is built with Flutter and consumes data from the NewsAPI service.

Screenshots

Home Screen Dark Mode Detail Screen
Home Screen Dark Mode Detail Screen

Features

  • Browse news articles by category
  • Search for news articles
  • Save favorite articles for later reading
  • Dark mode support
  • Localization support for English and Indonesia

Tech Stack

  • State management: Bloc pattern with flutter_bloc package
  • Networking: Dio package for HTTP requests
  • Navigation: Flutter's built-in Navigator widget
  • Data storage: Hive package for more complex data storage and for simple key-value storage.
  • Image loading: Cached_network_image package
  • Date/time formatting: Intl package
  • Lint : very_good_analysis package for code style

Getting Started

To use this app, follow these steps:

  1. Make sure you have the Flutter SDK installed. If you don't have it, follow the instructions in the official Flutter documentation to install it.

  2. Create an account on NewsAPI to get an API key.

  3. Clone this repository to your local machine.

  4. Open a terminal window and navigate to the project directory.

  5. Run the following command to install the required dependencies:

        make get
  6. Replace YOUR_API_KEY in .vscode/launch.json with your actual NewsAPI API key.

    {
        "name": "Flutter Habar App",
        "type": "dart",
        "request": "launch",
        "program": "lib/main.dart",
        "flutterMode": "debug", // you can change the mode
        "args": [
            "--dart-define",
            "news-app-token=YOUR_API_KEY" //replace with your API key
        ]
    }
  7. Run the app using vscode debug or the following command:

        flutter run --dart-define=news-app-token=YOUR_API_KEY

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for more details.

About

Flutter Habar App is a mobile application that allows users to browse news articles from various sources. The app is built with Flutter and consumes data from the NewsAPI service.

Topics

Resources

License

Stars

Watchers

Forks