Giter VIP home page Giter VIP logo

Comments (6)

vasilich6107 avatar vasilich6107 commented on August 16, 2024 1

Thanks for helping.
I will check and fix

from reactive_forms_generator.

vasilich6107 avatar vasilich6107 commented on August 16, 2024 1

Released new version with generic support

from reactive_forms_generator.

vasilich6107 avatar vasilich6107 commented on August 16, 2024

Hi @BenjiFarquhar could you try generics branch?
It was pretty fast implementation so I will try to add some fixes if needed

from reactive_forms_generator.

BenjiFarquhar avatar BenjiFarquhar commented on August 16, 2024

@vasilich6107 Thanks!! I ended up realising that the class I was trying to assign to vgnItm has field tags of type List<dynamic> if it is not given a generic, so my error was not actually solvable with a generic form. Apologies! Not to say that generic forms don't have a good use case though!

I tried to pull the generics branch down and run with the tags<T> form class but I got this error:

[SEVERE] reactive_forms_generator:reactive_forms_generator on lib/src/presentation/pages/manage_vegan_items/factories/form_definitions/_common/tags/tags_form_definition.dart (cached):

Invalid argument(s): [typeParameters.length: 1][typeArguments.length: 0][element: class Tags<T> with _$Tags<T>][typeParameters: [T]][typeArguments: []]
[SEVERE] Failed after 401ms

So it might not be working?

from reactive_forms_generator.

vasilich6107 avatar vasilich6107 commented on August 16, 2024

There is a demo in example
https://github.com/artflutter/reactive_forms_generator/blob/generics/packages/reactive_forms_generator/example/lib/docs/generic/generic.dart

Could you provide the code that fails for you?

from reactive_forms_generator.

BenjiFarquhar avatar BenjiFarquhar commented on August 16, 2024

@vasilich6107 Working great. I added a demo for generic in a PR. Code conflicts on generated files. Are you able to run your gen to fix?

from reactive_forms_generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.