fix
This commit is contained in:
8
lib/features/products/data/data.dart
Normal file
8
lib/features/products/data/data.dart
Normal 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';
|
||||
7
lib/features/products/data/datasources/datasources.dart
Normal file
7
lib/features/products/data/datasources/datasources.dart
Normal 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';
|
||||
6
lib/features/products/data/models/models.dart
Normal file
6
lib/features/products/data/models/models.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all products data models
|
||||
///
|
||||
/// Contains DTOs and models for product data transfer
|
||||
library;
|
||||
|
||||
export 'product_model.dart';
|
||||
8
lib/features/products/domain/domain.dart
Normal file
8
lib/features/products/domain/domain.dart
Normal 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';
|
||||
6
lib/features/products/domain/entities/entities.dart
Normal file
6
lib/features/products/domain/entities/entities.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all products domain entities
|
||||
///
|
||||
/// Contains core business entities for products
|
||||
library;
|
||||
|
||||
export 'product.dart';
|
||||
7
lib/features/products/domain/usecases/usecases.dart
Normal file
7
lib/features/products/domain/usecases/usecases.dart
Normal 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';
|
||||
6
lib/features/products/presentation/pages/pages.dart
Normal file
6
lib/features/products/presentation/pages/pages.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all products presentation pages
|
||||
///
|
||||
/// Contains all screens related to products
|
||||
library;
|
||||
|
||||
export 'products_page.dart';
|
||||
8
lib/features/products/presentation/presentation.dart
Normal file
8
lib/features/products/presentation/presentation.dart
Normal 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';
|
||||
15
lib/features/products/presentation/providers/providers.dart
Normal file
15
lib/features/products/presentation/providers/providers.dart
Normal 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';
|
||||
15
lib/features/products/products.dart
Normal file
15
lib/features/products/products.dart
Normal 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';
|
||||
Reference in New Issue
Block a user