component_generator 0.1.3 copy "component_generator: ^0.1.3" to clipboard
component_generator: ^0.1.3 copied to clipboard

Annotated HTTP client code generation (REST), optional table/widget helpers, and HTTP/1.1 and HTTP/2 client bases for Dart.

0.1.3 #

  • Guard generated fromJson calls when resp.res is null.
  • Skip *Fetch helper generation when the request type lacks pageNum and pageSize fields.
  • Default generated MyClient template sets prefix to http://127.0.0.1:8080.

0.1.2 #

  • Backward compatible with 0.1.1 for package consumers (same annotations and generated shape).
  • Raise build to ^4.0.0 (works with current json_serializable / build_runner stacks).
  • Widen analyzer to >=8.4.1 <14.0.0 so apps can resolve newer json_serializable (analyzer 10+) in the same workspace as this package.
  • Depend on component_set ^0.1.2.

0.1.1 #

  • Generated list *Fetch helpers use IPaginationController<T>; import a concrete definition in the same library as your part file (see example/, e.g. component_set).
  • Fix generated fetch error message when reporting resp.code.
  • Refresh example (networkApi, build_runner outputs) and metadata for publishing.

0.1.0 #

  • Initial version.
1
likes
130
points
28
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Annotated HTTP client code generation (REST), optional table/widget helpers, and HTTP/1.1 and HTTP/2 client bases for Dart.

Repository (GitHub)
View/report issues

Topics

#codegen #build-runner #http

License

MIT (license)

Dependencies

analyzer, build, component_set, dart_style, path, source_gen

More

Packages that depend on component_generator