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,15 @@
/// Categories Feature
///
/// Complete categories feature following clean architecture.
/// Includes category listing, filtering, and management.
///
/// Usage:
/// ```dart
/// import 'package:retail/features/categories/categories.dart';
/// ```
library;
// Export all layers
export 'data/data.dart';
export 'domain/domain.dart';
export 'presentation/presentation.dart';

View File

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

View File

@@ -0,0 +1,6 @@
/// Export all categories data sources
///
/// Contains local data sources for categories
library;
export 'category_local_datasource.dart';

View File

@@ -0,0 +1,6 @@
/// Export all categories data models
///
/// Contains DTOs and models for category data transfer
library;
export 'category_model.dart';

View File

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

View File

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

View File

@@ -0,0 +1,6 @@
/// Export all categories domain use cases
///
/// Contains business logic for category operations
library;
export 'get_all_categories.dart';

View File

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

View File

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

View File

@@ -1,4 +1,13 @@
/// Export all category providers
///
/// Contains Riverpod providers for category state management
library;
export 'category_datasource_provider.dart';
export 'categories_provider.dart';
export 'category_product_count_provider.dart';
// Note: SelectedCategory provider is defined in categories_provider.dart
// but we avoid exporting it separately to prevent ambiguous exports with
// the products feature. Use selectedCategoryProvider directly from
// categories_provider.dart or from products feature.