All the news you need and more.
Headline is a flutter application which uses Google News Api to fetch top news headlines in India and displays it. The main aim of the application is to provide a easy way for the people to know what is happening around the world.
The website may take some time when loading the website for the first time.
- Latest version of the flutter is installed and configured properly. To test it run the following command
flutter doctor
- Having an RapidApi account. If not visit RapidApi to create a account.
- Go to Google News and subscribe to the API.
- Download or Clone this repository.
- Please open file constant.dart and change
YOUR API KEY
in the variableapiKey
with your own RapidApi-key. - The application is developed for large screen devices.
- To run the application in debug mode on chrome
flutter run -d chrome
- To build and release the fluter web app
flutter build web
You can also choose which renderer to use by using the --web-renderer
option (See Web renderers).
- This generates the app, including the assets, and places the files into the /build/web directory of the project.
The release build of a simple app has the following structure:
/build/web
assets
AssetManifest.json
FontManifest.json
NOTICES
fonts
MaterialIcons-Regular.ttf
<other font files>
<image files>
index.html
main.dart.js
main.dart.js.map
- Launch a web server (for example,
python -m http.server 8000
, or by using the dhttpd package), and open the /build/web directory. - Navigate to
localhost:8000
in your browser (given the python SimpleHTTPServer example) to view the release version of your app.
For more information visit: https://docs.flutter.dev/deployment/web
- http - A composable, multi-platform, Future-based API for HTTP requests.
- flutter_svg - An SVG rendering and widget library for Flutter, which allows painting and displaying Scalable Vector Graphics 1.1 files.
- jiffy - Jiffy is a date dart package inspired by momentjs for parsing, manipulating and formatting dates.
- flutter_spinkit - A collection of loading indicators animated with flutter.
A few resources for you to get 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.