fix
This commit is contained in:
8
lib/features/home/data/data.dart
Normal file
8
lib/features/home/data/data.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
/// Export all home/cart data layer components
|
||||
///
|
||||
/// Contains data sources, models, and repository implementations
|
||||
library;
|
||||
|
||||
export 'datasources/datasources.dart';
|
||||
export 'models/models.dart';
|
||||
export 'repositories/cart_repository_impl.dart';
|
||||
6
lib/features/home/data/datasources/datasources.dart
Normal file
6
lib/features/home/data/datasources/datasources.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all home/cart data sources
|
||||
///
|
||||
/// Contains local data sources for cart operations
|
||||
library;
|
||||
|
||||
export 'cart_local_datasource.dart';
|
||||
7
lib/features/home/data/models/models.dart
Normal file
7
lib/features/home/data/models/models.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
/// Export all home/cart data models
|
||||
///
|
||||
/// Contains DTOs and models for cart and transaction data transfer
|
||||
library;
|
||||
|
||||
export 'cart_item_model.dart';
|
||||
export 'transaction_model.dart';
|
||||
8
lib/features/home/domain/domain.dart
Normal file
8
lib/features/home/domain/domain.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
/// Export all home/cart domain layer components
|
||||
///
|
||||
/// Contains entities, repository interfaces, and use cases
|
||||
library;
|
||||
|
||||
export 'entities/entities.dart';
|
||||
export 'repositories/cart_repository.dart';
|
||||
export 'usecases/usecases.dart';
|
||||
6
lib/features/home/domain/entities/entities.dart
Normal file
6
lib/features/home/domain/entities/entities.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all home/cart domain entities
|
||||
///
|
||||
/// Contains core business entities for cart operations
|
||||
library;
|
||||
|
||||
export 'cart_item.dart';
|
||||
9
lib/features/home/domain/usecases/usecases.dart
Normal file
9
lib/features/home/domain/usecases/usecases.dart
Normal file
@@ -0,0 +1,9 @@
|
||||
/// Export all home/cart domain use cases
|
||||
///
|
||||
/// Contains business logic for cart operations
|
||||
library;
|
||||
|
||||
export 'add_to_cart.dart';
|
||||
export 'calculate_total.dart';
|
||||
export 'clear_cart.dart';
|
||||
export 'remove_from_cart.dart';
|
||||
15
lib/features/home/home.dart
Normal file
15
lib/features/home/home.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
/// Home/Cart Feature
|
||||
///
|
||||
/// Complete home and shopping cart feature following clean architecture.
|
||||
/// Includes cart management, product selection, and checkout operations.
|
||||
///
|
||||
/// Usage:
|
||||
/// ```dart
|
||||
/// import 'package:retail/features/home/home.dart';
|
||||
/// ```
|
||||
library;
|
||||
|
||||
// Export all layers
|
||||
export 'data/data.dart';
|
||||
export 'domain/domain.dart';
|
||||
export 'presentation/presentation.dart';
|
||||
6
lib/features/home/presentation/pages/pages.dart
Normal file
6
lib/features/home/presentation/pages/pages.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all home/cart presentation pages
|
||||
///
|
||||
/// Contains all screens related to home and cart
|
||||
library;
|
||||
|
||||
export 'home_page.dart';
|
||||
8
lib/features/home/presentation/presentation.dart
Normal file
8
lib/features/home/presentation/presentation.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
/// Export all home/cart presentation layer components
|
||||
///
|
||||
/// Contains pages, widgets, and providers for cart UI
|
||||
library;
|
||||
|
||||
export 'pages/pages.dart';
|
||||
export 'providers/providers.dart';
|
||||
export 'widgets/widgets.dart';
|
||||
Reference in New Issue
Block a user