mark-nicepants / figma2flutter

Converts design token json files to flutter
Apache License 2.0
17 stars 16 forks source link

Remove `const` before `BorderRadius.zero` in `border_radius_transformer.dart` #2

Closed p0dyakov closed 9 months ago

p0dyakov commented 9 months ago

I have such errors when launching a application after code generation:

lib/src/core/gen/token/tokens.g.dart:3741:47: Error: Couldn't find constructor 'EdgeInsets.zero'.
  EdgeInsets get spacing0 => const EdgeInsets.zero;
                                              ^^^^
lib/src/core/gen/token/tokens.g.dart:4359:56: Error: Couldn't find constructor 'BorderRadius.zero'.
  BorderRadius get borderRadius0 => const BorderRadius.zero;
                                                       ^^^^
p0dyakov commented 9 months ago

@mark-nicepants

But this pull request does not solve the first error. I looked at the sources, const isn't before EdgeInsets. What do you think this could be related to?

UPD: I used 0.1.0-alpha, not 0.1.1-alpha. When will you publish the new version?

mark-nicepants commented 9 months ago

Thanks for fixing this bug. Ill update pub.dev somewhere in the coming days.