functional_widget 0.3.0 copy "functional_widget: ^0.3.0" to clipboard
functional_widget: ^0.3.0 copied to clipboard

outdated

A code generator that generates widget classes from their implementation as a function.

0.3.0 #

  • Support function callbacks and generic functions:
@widget
Widget foo<T>(void onTap(T value)) {
    // do something
}
  • Updated support for HookWidget using new annotation @hwidget:
@hwidget
Widget foo() {
    final counter = useState(0);
    // do something
}

0.2.2 #

  • Readme update

0.2.1 #

  • Fix bug where types from dart:ui where generated as dynamic

0.2.0 #

  • Rename generator
  • Add documentation

0.1.0 #

  • Generate class documentation from the function documentation.
  • Pass down decorators from function parameter to class constructor

0.0.1 #

Initial release

241
likes
0
pub points
82%
popularity

Publisher

verified publisherdash-overflow.net

A code generator that generates widget classes from their implementation as a function.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

analyzer, build, build_config, code_builder, functional_widget_annotation, meta, source_gen

More

Packages that depend on functional_widget