Skip to content

Produced Invalid Code #15

@workerbee22

Description

@workerbee22

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions