Skip to content

Abdalqader27/NY-Times

Repository files navigation

style: effective dart

Flutter News App

News App developed with Flutter and API from NY Times API

Usage

  1. Please visit this webiste https://developer.nytimes.com/ and add new app then you will get YOUR API KEY
  2. write this command in your termanial to lunch the app
flutter run --dart-define=API_KEY=YOUR_API_KEY  

For iOS, to build and release there is no configuration. Just follow the instructions from
the documentation.

Test

to run the test write this command in your termanial to lunch your app mock test

flutter test test/unit_test.dart  --dart-define=API_KEY=YOUR_API_KEY

Feature

  • List daily news.
  • Refresh list daily news with pull to refresh style.
  • Go to detail Article.
  • Dark mode support.
  • Unit Testing.
  • Flutter Animation.

Pages


Error Page:

Screenshot 2023-04-26 at 8 29 39 PM Screenshot 2023-04-26 at 8 24 27 PM
Home Page:

Screenshot 2023-04-26 at 8 24 07 PM Screenshot 2023-04-26 at 8 33 27 PM
Details Page:

Screenshot 2023-04-26 at 8 35 35 PM Screenshot 2023-04-26 at 8 35 22 PM

Technology

  1. Dio: A powerful Http client for Dart, which supports interceptors, FormData, Request Cancellation,
    File Downloading, Timeout, etc.
  2. Flutter BLoC: Flutter widgets that make it easy to implement the BLoC design pattern.
  3. Intl: Package providers internationalization and localization facilities, including message
    translation, plurals and genders, date/number formatting and parsing, and bidirectional text.
  4. Cached Network Image: Flutter library to load and cache network images. Can also be used with placeholder and error
    widgets.
  5. Get It: Simple direct Service Locator that allows to decouple the interface from a concrete
    implementation and to access the concrete implementation from everywhere in your App.
  6. Equatable: An abstract class that helps to implement equality without needing to explicitly override == and
    hashCode.
  7. Flutter Responsive framework: A Flutter plugin for adapting screen and font size.
  8. Flutter SVG: An SVG rendering and widget library for Flutter, which allows painting and displaying Scalable
    Vector Graphics 1.1 files.
  9. Build Runner: Tools to write binaries that run builders.
  10. Bloc Test: A testing library which makes it easy to test blocs.
  11. JSON Serializable: Automatically generate code for converting to and from JSON by annotating Dart classes.

https://www.buymeacoffee.com/abdalqader27

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published