A project created by flutter using the API https://newsapi.org/ and using a state management provider to view news.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Step 1:
Download or clone this repo by using the link below:
https://github.com/ahfasxp/news_dicoding.git
Step 2:
Go to project root and execute the following command in console to get the required dependencies:
flutter pub get
- Splash Screen
- Headline News
- Detail News
- Webview News
- flutter_launcher_icons
- http
- provider (State Management)
- webview_flutter
Here is the core folder structure which flutter provides.
flutter-app/
|- android
|- build
|- ios
|- lib
|- test
Here is the folder structure we have been using in this project
lib/
|- data/
|- provider/
|- ui/
|- widgets/
|- main.dart
To run tests, run the following command
Unit Test News Provider
flutter test test/provider/news_provider_test.dart
I'll be happy to answer any questions you have about this project, and if you'd like to help with this project, please raise an issue and/or withdraw a request. Thank you very much ๐