Skip to content

NewsApi.org newspaper app with clean architecture , bloc & riverpod state management, floor database, restapi etc

Notifications You must be signed in to change notification settings

arrahmanbd/daily_news_clean_architecture

Repository files navigation

Flutter NewsApi app (Bloc📦& Riverpod🎯)

NewsApp is a sleek and intuitive mobile application designed to keep you informed with the latest news updates from around the globe. With a clean interface and powerful features, staying up-to-date with current events has never been easier. Leveraging the robust capabilities of NewsAPI.org along with cutting-edge technologies like Retrofit, BLoC, GetIt, and Floor, NewsApp delivers a seamless user experience with comprehensive news coverage.

Key Features 💡

  • Bloc & Riverpod: Added Riverpod clean architecture 🎯 on riverpod branch 🌿.
  • Daily News Updates: Get access to a wide range of news articles covering diverse topics including politics, technology, business, entertainment, sports, and more.
  • Offline Access: Enjoy uninterrupted access to news content even when you're offline, thanks to the offline caching feature powered by Floor.
  • Smooth Navigation: Navigate through news categories effortlessly with a user-friendly interface designed for intuitive interaction.
  • Seamless Integration: Benefit from seamless integration of Retrofit for efficient API communication and BLoC and Riverpod for state management, ensuring smooth performance and responsiveness.
  • Dependency Injection: Utilize GetIt for efficient dependency injection, enhancing the scalability and maintainability of the app's architecture.

With DailyNewsApp, you can explore the Flutter Clean Architecture and experience the SOLID coding!

📦 Getting Started [Bloc]

Clone the Repository:

git clone https://github.com/arrahmanbd/daily_news_clean_architecture.git

🎯 Getting started [Riverpod]

Clone the Riverpod branch🌿:

git clone -b riverpod https://github.com/arrahmanbd/daily_news_clean_architecture.git

Packages

Packages I used in this project

  #state management
  flutter_bloc: ^8.1.2

  #comparing dart objects
  equatable: ^2.0.5

  #service locator
  get_it: ^7.6.0
  
  #dateFormat
  intl: ^0.18.1

  #Database
  floor: any

  #make request to api
  retrofit: ^3.0.1

  #Hooks
  flutter_hooks: ^0.18.3

  #chached image 
  cached_network_image: ^3.2.0

  #iconpack
  ionicons: ^0.2.2

Using on dev dependency:

  retrofit_generator: 3.0.1+1
  floor_generator: 1.2.0
  build_runner: 2.1.2

How to Generate Code

To regenarate the models simply run those commands below.

  flutter pub run build_runner build -d  

Run Project

To test this project Run this command:

  flutter run 

Screenshots

App Screenshot

App Screenshot

🚀 Follow

portfolio linkedin linkedin

Badges

MIT License GPLv3 License AGPL License

About

NewsApi.org newspaper app with clean architecture , bloc & riverpod state management, floor database, restapi etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published