Skip to content

Shyam16102001/Headline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Headline Logo

All the news you need and more.

Headline is a flutter application which uses Bing News Search 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.

Website Link

The website may take some time when loading the website for the first time.

website

Prerequisite

  1. Latest version of the flutter is installed and configured properly. To test it run the following command
flutter doctor
  1. Having an RapidApi account. If not visit RapidApi to create a account.
  2. Go to Bing News Search and subscribe to the API.

Usage

  1. Download or Clone this repository.
  2. Please open file constant.dart and change YOUR API KEY in the variable apiKey with your own RapidApi-key.
  3. The application is developed for large screen devices.
  4. To run the application in debug mode on chrome
flutter run -d chrome
  1. 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).

  1. 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
  1. Launch a web server (for example, python -m http.server 8000, or by using the dhttpd package), and open the /build/web directory.
  2. 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

Dependencies

  1. http - A composable, multi-platform, Future-based API for HTTP requests.
  2. flutter_svg - An SVG rendering and widget library for Flutter, which allows painting and displaying Scalable Vector Graphics 1.1 files.
  3. jiffy - Jiffy is a date dart package inspired by momentjs for parsing, manipulating and formatting dates.
  4. flutter_spinkit - A collection of loading indicators animated with flutter.

New to 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.