autoverpod_generator 0.0.3 copy "autoverpod_generator: ^0.0.3" to clipboard
autoverpod_generator: ^0.0.3 copied to clipboard

Code generator for autoverpod annotations to create Riverpod widgets

AutoVerpod Generator #

A code generator for the autoverpod package that automatically generates Riverpod-integrated widgets based on annotations.

Features #

  • Generates stateless widgets with Riverpod integration from @stateWidget annotations
  • Generates form widgets with Riverpod integration from @formWidget annotations
  • Generates form update widgets with Riverpod integration from @formUpdateWidget annotations
  • Provides an extensible architecture for adding custom generators

Installation #

Add the following to your pubspec.yaml:

dependencies:
  autoverpod: ^0.0.3
  hooks_riverpod: <latest-version> # state management
  flutter_hooks: <latest-version> # required for handle generated form field

dev_dependencies:
  autoverpod_generator: ^0.0.1
  build_runner: ^2.4.0

Usage #

The autoverpod_generator works in conjunction with the autoverpod package to generate Riverpod-integrated widgets from annotated classes. It processes annotations like @stateWidget, @formWidget, and @formUpdateWidget to create the necessary boilerplate code for your Flutter application.

After adding the appropriate annotations to your classes, run the build_runner to generate the widgets:

flutter pub run build_runner build

Additional Information #

For more detailed information about how to use the generated widgets and the full capabilities of the autoverpod ecosystem, please refer to the autoverpod package documentation.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

0
likes
0
points
401
downloads

Publisher

unverified uploader

Weekly Downloads

Code generator for autoverpod annotations to create Riverpod widgets

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, autoverpod, build, code_builder, collection, dart_style, flutter, meta, path, recase, riverpod, riverpod_annotation, source_gen

More

Packages that depend on autoverpod_generator