api_generator 0.9.4
api_generator: ^0.9.4 copied to clipboard
Generate Flutter projects, features, and design-system scaffolds from Swagger/OpenAPI and Figma.
Changelog #
0.9.4 #
- Rewrite pub.flutter-io.cn README so the package is easier to understand at first glance
- Add clearer capability overview, install steps, command guide, and generated output explanation
- Add full documentation sections in English, O'zbek, and Russian
0.9.3 #
- Fix generated
api_client.g.dartcompatibility by removing aliased model imports fromapi_client.dart - Keep feature-prefixed model class names so cross-feature request and response model conflicts still do not happen
- Restore plain model type references for Retrofit code generation while preserving unique generated class names
0.9.2 #
- Prefix generated Swagger request and response model class names with their feature names
- Fix
api_client.dartmodel imports by aliasing feature model barrels in method signatures - Prevent cross-feature model conflicts such as multiple
CreateRequestModelclasses
0.9.1 #
- Fix generated Freezed request and response models to use
abstract class ... with _$... - Prevent analyzer errors like missing concrete implementations on generated model getters
- Add regression coverage for generated Swagger request and response model class shape
0.9.0 #
- Generate feature data sources as
@subGenmixins withpart '*.g.dart'files underdomain/data_source - Generate
DataSourceImplclasses that wrap API calls withResponseHandler<T>andServerErrorhandling - Update generated repositories to unwrap datasource
ResponseHandler<T>results safely - Add generated local
sub_gen.dartsupport so datasource annotations compile without extra setup
0.8.0 #
- Generate
Retrofit + DioAPI clients withpart 'api_client.g.dart'and interceptor wiring closer to production project style - Add generated
AppLoggerUtilssupport backed by theloggerpackage - Reorganize generated feature models under operation-based folders such as
data/model/login/requestanddata/model/login/response - Update feature scaffolding and dependency installation to match the new Retrofit/logger output structure
0.7.0 #
- Remove the
openapi-generator-clidependency from Swagger generation flows - Generate custom plain
dioAPI clients directly from the parsed OpenAPI spec - Generate request and response layer files as
Freezedmodels instead of aliasing OpenAPI Generator output - Drop generated-project
retrofitandretrofit_generatorpackage requirements - Update feature scaffolding so it no longer imports
core/generated/openapi/api.dart
0.6.2 #
- Replace generated local storage wiring from
flutter_secure_storagetoshared_preferences - Make
startinstall the runtime packages required by the generated Swagger scaffold, includingeasy_localization,flutter_screenutil, andshared_preferences - Update Swagger project manual steps to point at
app/di/configure_dependencies.dartand the Retrofitbuild_runnerstep
0.6.1 #
- Rework legacy Swagger generation so it scaffolds a full single-project Flutter structure under
app,core,shared,features, andassets - Generate feature contracts in
domain/data_sourceanddomain/repository, with implementations underdata/repository - Add app bootstrap, DI modules, router, theme files, request status helpers, and assets locale folders to the generated output
- Keep generated API clients on a single Retrofit/Dio entry point with interceptor-based token and language headers
0.6.0 #
- Turn
startinto a Swagger-first clean architecture setup for existing Flutter projects - Generate features from Swagger tags into
data,domain, andpresentationfolders without requiring Figma - Add
data/datasources, request/response model folders, feature pages, and GetIt service locator generation - Make dependency installation smarter by adding only missing Flutter packages from
pubspec.yaml
0.5.2 #
- Fix generated Figma screen widgets so button layouts include valid Dart separators
- Fix generated dialog widget trees so
build_runnerno longer fails on emitted screen views - Extend emitter regression coverage for generated design-first widget syntax
0.5.1 #
- Parse richer Figma screen metadata including colors, typography, spacing, radius, and sizes
- Generate design-first Flutter pages and widgets using extracted Figma values instead of placeholder-only layouts
- Add regression tests for Figma analysis and scaffold emitter output
0.5.0 #
- Change
startinto a Figma-first setup flow for existing Flutter projects - Ask only for Figma URL in the terminal and infer a feature scaffold from the design
- Generate design-first pages and widget views even when Swagger is not provided
- Keep architecture selection and dependency installation in the interactive setup
0.4.0 #
- Add interactive
startwizard for existing Flutter projects - Let users choose architecture in terminal before generation starts
- Install common Flutter dependencies automatically with
flutter pub add - Prompt for Swagger URL, Swagger basic auth, Figma URL, and feature name in one guided flow
- Run design-system sync, feature generation, and optional
build_runnerfrom the same command
0.3.0 #
- Add workspace-oriented CLI flow with
init,attach,doctor,scan,config,sync,add-feature,register-widget,make-widget, andimport-assets - Add persistent
.codegen.yamlconfig support for new and existing Flutter projects - Add architecture-aware workspace scaffolding for clean, ddd, feature_sliced, and mvvm modes
- Add safe, merge, and force write strategies with reporting hooks
- Rewrite package documentation for pub.flutter-io.cn with simpler UZ, RU, and EN onboarding
0.2.0 #
- Add
generate-featureCLI command for Swagger + Figma driven feature scaffolding - Detect feature-specific Swagger endpoints and Figma screens or selected nodes
- Generate Clean Architecture feature layers, Cubits, reusable widgets, and a Markdown generation report
0.1.2 #
- Simplify CLI usage to
api_generator generate <url-or-file> [output] - Default generated output to
./libwhen no output path is provided - Prompt for basic auth username and password automatically after a 401 response
- Keep advanced auth flags available for non-interactive bearer and basic auth workflows
0.1.1 #
- Fix Swagger UI extraction when
swagger-ui-init.jsuses quotedswaggerDockeys and laterspec: spec1aliases
0.1.0 #
- Initial CLI package scaffold
- Swagger/OpenAPI source detection and extraction
- OpenAPI Generator
dart-diointegration - Repository generation by tags