News App developed with Flutter and API from NY Times API
- Please visit this webiste https://developer.nytimes.com/ and add new app then you will get
YOUR API KEY
- 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.
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
- List daily news.
- Refresh list daily news with pull to refresh style.
- Go to detail Article.
- Dark mode support.
- Unit Testing.
- Flutter Animation.
Error Page:
Home Page:
Details Page:
- Dio: A powerful Http client for Dart, which supports interceptors, FormData, Request Cancellation,
File Downloading, Timeout, etc. - Flutter BLoC: Flutter widgets that make it easy to implement the BLoC design pattern.
- Intl: Package providers internationalization and localization facilities, including message
translation, plurals and genders, date/number formatting and parsing, and bidirectional text. - Cached Network Image: Flutter library to load and cache network images. Can also be used with placeholder and error
widgets. - 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. - Equatable: An abstract class that helps to implement equality without needing to explicitly override == and
hashCode. - Flutter Responsive framework: A Flutter plugin for adapting screen and font size.
- Flutter SVG: An SVG rendering and widget library for Flutter, which allows painting and displaying Scalable
Vector Graphics 1.1 files. - Build Runner: Tools to write binaries that run builders.
- Bloc Test: A testing library which makes it easy to test blocs.
- JSON Serializable: Automatically generate code for converting to and from JSON by annotating Dart classes.