Fidev-io / framy

A convenient code generator for app styleguide, gallery, wireframes and/or storyboard.
https://framy.dev
GNU Lesser General Public License v3.0
148 stars 16 forks source link

Error while generating #138

Open torbenkeller opened 4 years ago

torbenkeller commented 4 years ago

I got this Error Message while generating:

NoSuchMethodError: The method 'fold' was called on null.
Receiver: null
Tried calling: fold<dynamic>("", Closure: (dynamic, FramyObjectConstructor) => dynamic)

I had no time to figure out why this happened but I added lots of widgets from our main project into a dummy project with framy. Also the error message is a bit cryptic and could be better

MarcinusX commented 4 years ago

Hm... Some code snippets would be definitely helpful 😀 It seems like there was some model or widget that didn't have public constructor but I can only guess if I can't see the annotation causing this error. :(

Once we identify it, we could also provide a better error message.

Could you please try and check which Widget is causing this? Maybe some private Widgets?