Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produced Invalid Code #15

Open
workerbee22 opened this issue Nov 22, 2020 · 0 comments
Open

Produced Invalid Code #15

workerbee22 opened this issue Nov 22, 2020 · 0 comments

Comments

@workerbee22
Copy link

workerbee22 commented Nov 22, 2020

Code produced has syntactic errors:

  • doesn't handle string with ' (as in plural like Sam's dog)
  • text blocks don't line wrap property by default
  • flutter_svg struggles with some of the Figma generated SVG files eg.
The following FormatException was thrown resolving a single-frame picture stream:
Invalid radix-10 number (at character 1)
109.00000110268593
  • comma and semicolon errors
  • pubspec.yaml code generated is in the wrong order eg. fonts before dependencies
  • identifies packages like flutter_svg for the pubspec but then does not provide the import statement
  • no trailing commas (so makes dartfmt struggle to clean up the code) as per recommendation
  • flags PNG and SVG assets (assume they go into /assets/images/ but then does not add them in assets to pubspec.yaml

This is just to start. So this is promising but I need to spend lots of time fixing the generate code to just be syntactically correct at a minimum before I can run a build. So I'm not saving much time, except on very complex layouts.

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

No branches or pull requests

1 participant