11 lines
1.1 KiB
Markdown
11 lines
1.1 KiB
Markdown
<!-- ---
|
|
applyTo: '**'
|
|
---
|
|
|
|
Coding standards, domain knowledge, and preferences that AI should follow.
|
|
|
|
# Always Uses Constant
|
|
|
|
I want you to always use constants for values that are used multiple times in the code. This includes colors, strings, and any other values that are reused. Define these constants in a separate file in folder lib\src\utils\constants, such as `lib\src\utils\constants\app_routes.dart, lib\src\utils\constants\enums.dart, lib\src\utils\constants\api_urls.dart,lib\src\utils\constants\colors.dart, lib\src\utils\constants\num_int.dart, lib\src\utils\constants\sizes.dart, lib\src\utils\constants\num_int.dart`, and import them where necessary. if the constant is not defined, create a new constant in the appropriate file. Use descriptive names for constants to make the code more readable and maintainable. Avoid using hardcoded values directly in the code.
|
|
Make sure to use the constants consistently across the application, and avoid duplicating values that can be defined as constants. This will help in maintaining the code and making it easier to update values in the future. -->
|