Skip to content

Conversation

mahendra-918
Copy link
Collaborator

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

  1. Created and executed a script that converts double quotes to single quotes across all Dart files
  2. Fixed special cases where direct conversion would cause syntax errors (in debug module)
  3. Maintained double quotes for strings containing apostrophes or single quotes
  4. 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

  • Tests have been added or updated to cover the changes
  • Documentation has been updated to reflect the changes
  • Code follows the established coding style guidelines
  • All tests are passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standardize String Quotes for Consistency
1 participant