Problem:
AuthService is currently located within the styleguide package/module. This violates separation of concerns and breaks modular boundaries.
📍 File in question:
export 'core/services/auth_service.dart';
📎 Why It’s a Problem
-
styleguide should only contain design system elements:
⮞ Colors, themes, typography, spacing, and reusable UI components.
-
Authentication logic is application-level domain logic, not visual or styling-related.
-
Keeping it inside styleguide creates tight coupling and breaks reuse.
✅ Recommendation
- Move
AuthService to a feature- or domain-specific module (e.g. core, auth, or services).
- Remove any exports from the
styleguide that expose business logic.
Impact:
- Restores proper architectural boundaries
- Makes
styleguide reusable and independent
- Reduces coupling between design system and application logic
Problem:
AuthServiceis currently located within thestyleguidepackage/module. This violates separation of concerns and breaks modular boundaries.📍 File in question:
📎 Why It’s a Problem
styleguideshould only contain design system elements:⮞ Colors, themes, typography, spacing, and reusable UI components.
Authentication logic is application-level domain logic, not visual or styling-related.
Keeping it inside
styleguidecreates tight coupling and breaks reuse.✅ Recommendation
AuthServiceto a feature- or domain-specific module (e.g.core,auth, orservices).styleguidethat expose business logic.Impact:
styleguidereusable and independent