freeCodeCamp / mobile

freeCodeCamp's open-source mobile app made with Flutter
https://contribute.freecodecamp.org
BSD 3-Clause "New" or "Revised" License
422 stars 123 forks source link

fix: problem to save smart-quote character in editor text #1264

Open shootermv opened 4 months ago

shootermv commented 4 months ago

closes #1222

Nirajn2311 commented 4 months ago

This only catches one smart quote(the closing double quote). Smart quotes are basically quotes but curved. So we need to catch both double and single quotes of them and replace with normal once.

I would suggest you to look at input formatters which you can set in a TextField widget. Also its better if we set this in the editor directly. You can find the editor here https://github.com/freeCodeCamp/PhoneIDE