wyatt-packages/packages/wyatt_component_copy_with_gen
Hugo Pointcheval 10117ab39b
chore(release): publish packages
- wyatt_analysis@2.4.2
 - wyatt_architecture@0.2.0
 - wyatt_authentication_bloc@0.5.0
 - wyatt_bloc_helper@2.0.1
 - wyatt_bloc_layout@0.0.2
 - wyatt_component_copy_with_extension@2.0.0
 - wyatt_component_copy_with_gen@2.0.0
 - wyatt_crud_bloc@0.1.1
 - wyatt_form_bloc@0.2.0+3
 - wyatt_http_client@2.0.0
 - wyatt_i18n@2.0.0
 - wyatt_type_utils@0.0.5
 - wyatt_ui_components@0.1.0
 - wyatt_ui_kit@2.0.0
 - wyatt_ui_layout@0.0.2
2023-04-14 00:12:52 +02:00
..
2023-04-14 00:12:52 +02:00
2023-04-14 00:08:14 +02:00
2023-04-13 23:29:26 +02:00
2023-04-14 00:12:52 +02:00
2023-04-14 00:12:52 +02:00

Component Copy With Gen

Style: Wyatt Analysis SDK: Dart & Flutter

A Dart package for generating code from annotations to ease the use of a UIKit in Flutter applications. The generated code is based on the annotation classes present in the wyatt_component_copy_with_extension package

This package does not contain Flutter specific code, but there is no sense in using it without Flutter.

Features

  • Supports the generation of abstract proxies in the wyatt_ui_components package.
  • Supports direct use in Flutter applications.

Usage

In the 'wyatt_ui_components' package

  • Add the appropriate annotation when adding a new component.
  • Run the build runner command to generate the proxy.

In Flutter applications (or UI Kit implementations)

  • Add the following dependencies to your pubspec.yaml:
dependencies:
  ...
  wyatt_component_copy_with_extension: ^0.0.1
dev_dependencies:
  ...
  wyatt_component_copy_with_gen: ^0.0.1
  build_runner: ^2.3.3
  • In your UIKit, extend the desired component class and add the appropriate annotation.
  • Run the code generation command via the build runner.

For further details and additional features on class annotation, see the 'wyatt_component_copy_with_extension' package's README.