-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Milestone
Description
Description:
To enhance the app's design consistency and enforce spacing rules more effectively, we should introduce a Gaps utility for handling spacing at compile time. This will replace the use of hardcoded values and ensure uniform spacing across the app.
Benefits of Gaps Utility:
- Consistency: Having a dedicated utility will ensure that spacing values are applied consistently throughout the app.
- Maintainability: Makes it easier to update spacing values in the future by modifying a single source of truth.
- Readability: Improves code readability by replacing magic numbers with named constants that convey the intended spacing purpose.
- Compile-Time Safety: By introducing compile-time constants, the spacing utility will prevent runtime issues and offer more predictability in layout rendering.
Objectives:
- Create a Gaps utility class to manage standardized spacing values (e.g., small, medium, large gaps).
- Refactor the existing layout components to use the new Gaps utility.
- Remove all hardcoded spacing values in the UI and replace them with the corresponding entries from the utility.
- Ensure the app’s visual design remains consistent and unaffected by the migration.
Reactions are currently unavailable