How tanjilalom/bloc_practise works
Main Components
a. Application Layers:
• Presentation Layer (UI)
• Business Logic Layer (BLoCs)
• Data Layer
• Platform-specific Layer (Android/iOS)
b. Feature Modules:
• Home Feature
• Cart Feature
• Time Details Note Feature
┌─ Flutter Application ─────────────────────────┐
• ┌─ Features ──────────────────────────┐ │
• ┌─ Home ─────┐ ┌─ Cart ────┐ │ │
• UI │ │ UI │ │ │
• BLoC │ │ BLoC │ │ │
• Models │ │ State │ │ │
• ┘ └───────────┘ │ │
• ┌─ Time Details Note ─┐ │ │
• UI │ │ │
• BLoC │ │ │
• State │ │ │
• ┘ │ │
• ┘ │
• ┌─ Shared ───────────────────────────┐ │
• Widgets │ │
• Data │ │
• ┘ │
• ┘
Detailed Component Breakdown
┌─ Feature Module ────────────────────┐
• ┌─ UI Layer ─┐ │
• Screen │ │
• Widgets │ │
• ┘ │
• ↕ │
• ┌─ BLoC Layer ┐ │
• Events │ │
• States │ │
• Business │ │
• Logic │ │
• ┘ │
• ↕ │
• ┌─ Data Layer ┐ │
• Models │ │
• Data Source │ │
• ┘ │
• ┘
Notes for Implementation
• Clear separation of concerns between layers
• Platform-specific implementations (Android/iOS)
• Shared components and their relationships