Flutter news application example demonstrates clean architecture principles and state management using the BLoC (Business Logic Component) pattern
-
Presentation Layer
- Widgets
- Providers (Bloc,cubit)
- UI Components
-
Domain Layer
- Use Cases
- Entities
- Repository Interfaces
-
Data Layer
- Repository Implementations
- Models
- Data Mapping
- Remote Data Source (API)
- Local Data Source (Database)
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
[Add your app screenshots here]
- Clone the repository
git clone https://github.com/Sumat-Dev/flutter-bloc-news-app.git
- Install dependencies
flutter pub get
- Run the application
flutter run
bloc: ^4.6.6
(State Management)dio: ^1.2.2
(HTTP Requests)
- Unit Tests
flutter test
Sumat Dev
- GitHub: @Sumat-Dev
Happy Coding! 💻✨