fix
This commit is contained in:
6
lib/core/config/config.dart
Normal file
6
lib/core/config/config.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all core configuration
|
||||
///
|
||||
/// Contains app configuration settings
|
||||
library;
|
||||
|
||||
export 'image_cache_config.dart';
|
||||
10
lib/core/constants/constants.dart
Normal file
10
lib/core/constants/constants.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
/// Export all core constants
|
||||
///
|
||||
/// Contains all application-wide constant values
|
||||
library;
|
||||
|
||||
export 'api_constants.dart';
|
||||
export 'app_constants.dart';
|
||||
export 'performance_constants.dart';
|
||||
export 'storage_constants.dart';
|
||||
export 'ui_constants.dart';
|
||||
34
lib/core/core.dart
Normal file
34
lib/core/core.dart
Normal file
@@ -0,0 +1,34 @@
|
||||
/// Core Module Barrel Export
|
||||
///
|
||||
/// Central export file for all core utilities, constants, and shared components.
|
||||
/// This module contains everything that's shared across features.
|
||||
///
|
||||
/// Usage:
|
||||
/// ```dart
|
||||
/// import 'package:retail/core/core.dart';
|
||||
/// ```
|
||||
///
|
||||
/// Includes:
|
||||
/// - Constants: API, app, storage, UI, performance
|
||||
/// - Network: Dio client, interceptors, network info
|
||||
/// - Storage: Secure storage, database
|
||||
/// - Theme: Material 3 theme, colors, typography
|
||||
/// - Utils: Formatters, validators, extensions, helpers
|
||||
/// - DI: Dependency injection setup
|
||||
/// - Widgets: Reusable UI components
|
||||
/// - Errors: Exception and failure handling
|
||||
library;
|
||||
|
||||
// Export all core modules
|
||||
export 'config/config.dart';
|
||||
export 'constants/constants.dart';
|
||||
export 'database/database.dart';
|
||||
export 'di/di.dart';
|
||||
export 'errors/errors.dart';
|
||||
export 'network/network.dart';
|
||||
export 'performance.dart';
|
||||
export 'providers/providers.dart';
|
||||
export 'storage/storage.dart';
|
||||
export 'theme/theme.dart';
|
||||
export 'utils/utils.dart';
|
||||
export 'widgets/widgets.dart';
|
||||
8
lib/core/database/database.dart
Normal file
8
lib/core/database/database.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
/// Export all core database components
|
||||
///
|
||||
/// Contains Hive database initialization and utilities
|
||||
library;
|
||||
|
||||
export 'database_initializer.dart';
|
||||
export 'hive_database.dart';
|
||||
export 'seed_data.dart';
|
||||
7
lib/core/di/di.dart
Normal file
7
lib/core/di/di.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
/// Export all dependency injection components
|
||||
///
|
||||
/// Contains service locator and injection container setup
|
||||
library;
|
||||
|
||||
export 'injection_container.dart';
|
||||
export 'service_locator.dart';
|
||||
7
lib/core/errors/errors.dart
Normal file
7
lib/core/errors/errors.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
/// Export all core error handling
|
||||
///
|
||||
/// Contains custom exceptions and failure classes
|
||||
library;
|
||||
|
||||
export 'exceptions.dart';
|
||||
export 'failures.dart';
|
||||
8
lib/core/network/network.dart
Normal file
8
lib/core/network/network.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
/// Export all core network components
|
||||
///
|
||||
/// Contains HTTP client, interceptors, and network utilities
|
||||
library;
|
||||
|
||||
export 'api_interceptor.dart';
|
||||
export 'dio_client.dart';
|
||||
export 'network_info.dart';
|
||||
6
lib/core/storage/storage.dart
Normal file
6
lib/core/storage/storage.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
/// Export all core storage components
|
||||
///
|
||||
/// Contains secure storage utilities
|
||||
library;
|
||||
|
||||
export 'secure_storage.dart';
|
||||
8
lib/core/theme/theme.dart
Normal file
8
lib/core/theme/theme.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
/// Export all core theme components
|
||||
///
|
||||
/// Contains Material 3 theme configuration
|
||||
library;
|
||||
|
||||
export 'app_theme.dart';
|
||||
export 'colors.dart';
|
||||
export 'typography.dart';
|
||||
12
lib/core/utils/utils.dart
Normal file
12
lib/core/utils/utils.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
/// Export all core utilities
|
||||
///
|
||||
/// Contains helper functions, extensions, and utility classes
|
||||
library;
|
||||
|
||||
export 'database_optimizer.dart';
|
||||
export 'debouncer.dart';
|
||||
export 'extensions.dart';
|
||||
export 'formatters.dart';
|
||||
export 'performance_monitor.dart';
|
||||
export 'responsive_helper.dart';
|
||||
export 'validators.dart';
|
||||
Reference in New Issue
Block a user