wyatt_component_copy_with_gen (2.0.0)

Published 2023-04-13 22:17:00 +00:00 by hugo in Wyatt-FOSS/wyatt-packages

Installation

dart pub add wyatt_component_copy_with_gen:2.0.0 --hosted-url=

About this package

Generator for copywith method for components.

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.

Details
Pub
2023-04-13 22:17:00 +00:00
48
15 KiB
Assets (1)
2.0.0.tar.gz 15 KiB
Versions (2) View all
2.0.1 2023-05-03
2.0.0 2023-04-13