Skip to content

Sumat-Dev/flutter-bloc-news-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Bloc News App 📰🚀

📖 Table of Contents

🚀 Introduction

Flutter news application example demonstrates clean architecture principles and state management using the BLoC (Business Logic Component) pattern

🏗 Architectural Pattern

Clean Architecture Layers

  1. Presentation Layer

    • Widgets
    • Providers (Bloc,cubit)
    • UI Components
  2. Domain Layer

    • Use Cases
    • Entities
    • Repository Interfaces
  3. Data Layer

    • Repository Implementations
    • Models
    • Data Mapping
    • Remote Data Source (API)
    • Local Data Source (Database)

📂 Project Structure

lib/
│
├── core/
│   ├── common/
│   ├── constants/
│   ├── error/
│   ├── extensions/
│   ├── resources/
│   ├── services/
│   ├── usecases/
│   └── utils/
│
├── features/
│   └── news/
│       ├── data/
│       │   ├── datasources/
│       │   ├── models/
│       │   └── repositories/
│       ├── domain/
│       │   ├── entities/
│       │   ├── repositories/
│       │   └── usecases/
│       └── presentation/
│           ├── bloc,cubit/
│           ├── pages/
│           └── widgets/
│
└── main.dart

📱 Screenshots

[Add your app screenshots here]

🚀 Getting Started

Installation

  1. Clone the repository
git clone https://github.com/Sumat-Dev/flutter-bloc-news-app.git
  1. Install dependencies
flutter pub get
  1. Run the application
flutter run

📦 Packages

  • bloc: ^4.6.6 (State Management)
  • dio: ^1.2.2 (HTTP Requests)

🧪 Testing

  • Unit Tests

Running Tests

flutter test

👨‍💻 Author

Sumat Dev


Happy Coding! 💻✨

About

Flutter News Application (Bloc & Clean Architecture)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published