jt_flutter_cli 1.3.3
jt_flutter_cli: ^1.3.3 copied to clipboard
A command-line tool that simplifies auto-code generation. Fully flexible, allowing you to generate a feature and widget for your Flutter applications.
1.3.3 #
- Code generation now works against a
dart formated project: imports and code anchors are matched on logical statements, so a formatter-wrapped line no longer breaks detection - Missing code anchors now report an error instead of silently skipping the insertion
- Imports are no longer duplicated when inserting into a file that already has them
- A malformed
pubspec.yamlnow reports a readable error instead of an unhandled exception create assetsconstant names are generated inSCREAMING_SNAKE_CASEfrom camelCase input too (ratingStargivesIMG_RATING_STAR, notIMG_RATINGSTAR)- Generated use cases no longer carry the template's
no_request.dartimport when the API has a request model, which the analyzer reported as an unused import - Verified on Flutter 3.44.9 / Dart 3.12.2 against boilerplate 3.44.9+1
- Fixed generation against a project on Dart 3.7 or newer, where
dart formatuses the new "tall" style:- the bloc constructor's use case parameter is now appended to the parameter list itself instead of being
inserted above the
super(...)initializer. That formatter collapses a short constructor onto one line, which put the parameter outside the list and produced a file that would not parse - the page's
BlocProvideranchor no longer relies on a trailing comma, which that formatter removes
- the bloc constructor's use case parameter is now appended to the parameter list itself instead of being
inserted above the
- The pub-cache folder holding the templates is now located from the version pub resolved in
pubspec.lockinstead of the constraint inpubspec.yaml. A project on^1.3.2resolves 1.3.3 and the CLI then looked forjt_flutter_cli-1.3.2, failing with "Dependency not found in .pub-cache directory" — so every release broke projects that had not re-pinned their constraint by hand
1.3.2 #
- Fixed Windows feature-generation breakage caused by a file-rename race condition
- Fixed imports and code silently not being inserted when a target file did not start with an import line
- Fixed a crash when inserting code before an anchor on the first line
- Mock JSON directory is now created automatically when missing
- Cross-platform path handling fixes
1.3.1 #
- Readme update
1.3.0 #
- Now multipart request can send list of files
1.2.0 #
- Fixed path issue
- Now Create assets command will create const for image
1.1.1 #
- Readme file update
1.1.0 #
- Added optional file and fields support for multipart request
1.0.0 #
- Fixed import issue
- Fixed use case generate issue
- Fixed use case repo name issue
- Fixed bloc and page use case name issue
- Added support for multipart request
- Readme file updates
- Code refactor
0.0.10 #
- Now Error state will have the status code
- Improved user interface
- Code fixes
- Rules updated to readme file
- Existing project upgrade guide is added to utilize CLI tool in existing project in readme file
- Code refactor
0.0.9 #
- Fixed No request override issue
0.0.8 #
- Fixed model creation issue
- README.md updates
0.0.7 #
- Fixed common widget comment issue
- README.md updates
0.0.6 #
- README.md updates
0.0.5 #
- Fixed bloc provider issue
- README.md updates
0.0.4 #
- Added POST API call integration feature
- Fixed window system pub cache path issue
- Fixed window system file permission issue
0.0.3 #
- Added GET API call integration feature
- Improved feature code
- Fixed windows 10 pub get issue
0.0.2 #
- Feature source path issue fixed
- DI update for feature files
- Update repository URL in pubspec.yaml
0.0.1 #
- Initial version