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

34
lib/core/core.dart Normal file
View 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';