This commit is contained in:
Phuoc Nguyen
2025-10-10 17:36:10 +07:00
parent 04f7042b8d
commit bdaf0b96c5
82 changed files with 4753 additions and 329 deletions

View File

@@ -0,0 +1,8 @@
/// Export all products data layer components
///
/// Contains data sources, models, and repository implementations
library;
export 'datasources/datasources.dart';
export 'models/models.dart';
export 'repositories/product_repository_impl.dart';

View File

@@ -0,0 +1,7 @@
/// Export all products data sources
///
/// Contains local and remote data sources for products
library;
export 'product_local_datasource.dart';
export 'product_remote_datasource.dart';

View File

@@ -0,0 +1,6 @@
/// Export all products data models
///
/// Contains DTOs and models for product data transfer
library;
export 'product_model.dart';

View File

@@ -0,0 +1,8 @@
/// Export all products domain layer components
///
/// Contains entities, repository interfaces, and use cases
library;
export 'entities/entities.dart';
export 'repositories/product_repository.dart';
export 'usecases/usecases.dart';

View File

@@ -0,0 +1,6 @@
/// Export all products domain entities
///
/// Contains core business entities for products
library;
export 'product.dart';

View File

@@ -0,0 +1,7 @@
/// Export all products domain use cases
///
/// Contains business logic for product operations
library;
export 'get_all_products.dart';
export 'search_products.dart';

View File

@@ -0,0 +1,6 @@
/// Export all products presentation pages
///
/// Contains all screens related to products
library;
export 'products_page.dart';

View File

@@ -0,0 +1,8 @@
/// Export all products presentation layer components
///
/// Contains pages, widgets, and providers for product UI
library;
export 'pages/pages.dart';
export 'providers/providers.dart';
export 'widgets/widgets.dart';

View File

@@ -0,0 +1,15 @@
/// Export all products providers
///
/// Contains Riverpod providers for product state management
library;
// Export individual provider files
// Note: products_provider.dart contains multiple providers
// so we only export it to avoid ambiguous exports
export 'products_provider.dart';
// These are also defined in products_provider.dart, so we don't export them separately
// to avoid ambiguous export errors
// export 'filtered_products_provider.dart';
// export 'search_query_provider.dart';
// export 'selected_category_provider.dart';

View File

@@ -0,0 +1,15 @@
/// Products Feature
///
/// Complete products feature following clean architecture.
/// Includes product listing, search, filtering, and management.
///
/// Usage:
/// ```dart
/// import 'package:retail/features/products/products.dart';
/// ```
library;
// Export all layers
export 'data/data.dart';
export 'domain/domain.dart';
export 'presentation/presentation.dart';