fix
This commit is contained in:
15
lib/features/categories/categories.dart
Normal file
15
lib/features/categories/categories.dart
Normal 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';
|
||||
8
lib/features/categories/data/data.dart
Normal file
8
lib/features/categories/data/data.dart
Normal 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';
|
||||
@@ -0,0 +1,6 @@
|
||||
/// Export all categories data sources
|
||||
///
|
||||
/// Contains local data sources for categories
|
||||
library;
|
||||
|
||||
export 'category_local_datasource.dart';
|
||||
6
lib/features/categories/data/models/models.dart
Normal file
6
lib/features/categories/data/models/models.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all categories data models
|
||||
///
|
||||
/// Contains DTOs and models for category data transfer
|
||||
library;
|
||||
|
||||
export 'category_model.dart';
|
||||
8
lib/features/categories/domain/domain.dart
Normal file
8
lib/features/categories/domain/domain.dart
Normal 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';
|
||||
6
lib/features/categories/domain/entities/entities.dart
Normal file
6
lib/features/categories/domain/entities/entities.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all categories domain entities
|
||||
///
|
||||
/// Contains core business entities for categories
|
||||
library;
|
||||
|
||||
export 'category.dart';
|
||||
6
lib/features/categories/domain/usecases/usecases.dart
Normal file
6
lib/features/categories/domain/usecases/usecases.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all categories domain use cases
|
||||
///
|
||||
/// Contains business logic for category operations
|
||||
library;
|
||||
|
||||
export 'get_all_categories.dart';
|
||||
6
lib/features/categories/presentation/pages/pages.dart
Normal file
6
lib/features/categories/presentation/pages/pages.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all categories presentation pages
|
||||
///
|
||||
/// Contains all screens related to categories
|
||||
library;
|
||||
|
||||
export 'categories_page.dart';
|
||||
8
lib/features/categories/presentation/presentation.dart
Normal file
8
lib/features/categories/presentation/presentation.dart
Normal 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';
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user