This Flutter project is a simple News App that fetches data from a News API and displays it in a user-friendly interface. The architecture follows the BLoC (Business Logic Component) pattern to separate the presentation layer from the business logic.
- Fetches news data from a News API.
- Displays a list of news articles with images and headlines.
- Allows users to tap on an article to view more details.
To run this project, follow these steps:
-
Clone the repository:
git clone https://github.com/PrasannKavlekar/NewsApp.git
-
Navigate to the project directory:
cd flutter-news-app
-
Install dependancies:
flutter pub get
-
Get your API key:
- Visit News API to obtain your API key.
- Replace the placeholder in lib/data/news_repository.dart with your actual API key.
-
Run the app:
flutter run