ultimate_alarm_clock
ultimate_alarm_clock copied to clipboard
Standardize String Quotes for Consistency
Description
This PR standardizes string quotes across the codebase by converting double quotes to single quotes whenever possible, as per Flutter/Dart convention. According to the convention, double quotes should only be used when the string contains a single quote to avoid unnecessary escaping.
Proposed Changes
- Created and executed a script that converts double quotes to single quotes across all Dart files
- Fixed special cases where direct conversion would cause syntax errors (in debug module)
- Maintained double quotes for strings containing apostrophes or single quotes
- Verified that the app compiles correctly after changes
Implementation Details
The conversion was done using a shell script that:
- Finds all Dart files in the project
- Uses regex to replace double quotes with single quotes only when appropriate
- Preserves double quotes when a string contains single quotes
- Special cases in debug controllers and views were fixed manually
Fixes #691
Screenshots
Checklist
- [x] Tests have been added or updated to cover the changes
- [x] Documentation has been updated to reflect the changes
- [x] Code follows the established coding style guidelines
- [x] All tests are passing