Closed ToddHerron closed 10 months ago
Hi @ToddHerron - Thanks for posting the issue. I can reproduce the issue.
Dev note - Below is the quick video showing the issue. https://github.com/FlutterFlow/flutterflow-issues/assets/17435678/b7e6e7b3-45e2-4f56-b519-86e2ee596111
Unfortunately, this still isn't working for me. Now I get "Code is improperly formatted" when I press the REFORMAT button.
To recreate:
return "Hello World!";
Addendum: This may be limited to type string as it doesn't seem to happen with type int or double. I haven't tried other types.
It turns out that you need to turn OFF "Smart Punctuation" on an iPad so the single and double quotes remain the vertical ones (' and " are the only ones accepted by the Dart compiler) instead of the slanted ones (‘ and “).
To turn OFF Smart Punctuation:
Thanks @ToddHerron for confirming that works! I was trying to figure out if there's a way to fix that without turning off the "Smart Punctuation" (since a lot of people might not be able to figure out this), but haven't got anything yet. I'll update this thread if there's a solution!
Hey @ToddHerron, this should be fixed in the next FlutterFlow iPad app update! It should now work properly even with "Smart Punctuation" ON.
Works perfectly now! Thanks! :)
Has your issue been reported?
Current Behavior
When using the iPad app to edit custom code and you press the “format code” icon, all the code disappears from the editor and it only shows line numbers 1 and 2 with no code content.
Expected Behavior
Custom code should reformat.
Steps to Reproduce
Reproducible from Blank
Bug Report Code (Required)
https://app.flutterflow.io/project/test-project-e1hto6?tab=customCode&customCodeTab=functions
Context
Unable to edit projects on iPad.
Visual documentation
https://share.icloud.com/photos/00bjPG19kkEpp9xJJCVgpSktw
Additional Info
No response
Environment