wyatt_component_copy_with_gen (2.0.1)
Installation
dart pub add wyatt_component_copy_with_gen:2.0.1 --hosted-url=
About this package
Generator for copywith method for components.
Component Copy With Gen
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
Assets (1)
Versions (2)
View all
2.0.1.tar.gz
15 KiB