Skip to content

Update dependencies and version to 2.2.0 with executable addition - #65

Closed
tegarnugroho wants to merge 3 commits into
smartnsoft:masterfrom
tegarnugroho:master
Closed

Update dependencies and version to 2.2.0 with executable addition#65
tegarnugroho wants to merge 3 commits into
smartnsoft:masterfrom
tegarnugroho:master

Conversation

@tegarnugroho

Copy link
Copy Markdown

This pull request updates the package for compatibility with Flutter 3.35.7+ by upgrading the dart_style dependency to version 3.x and making related code and test adjustments. Additionally, it simplifies generated and test code formatting for better readability and maintainability.

Dependency and compatibility updates:

  • Updated the dart_style dependency from ^2.3.0 to ^3.0.0 in pubspec.yaml to ensure compatibility with Flutter 3.35.7+ and incremented the package version to 2.2.0. [1] [2] [3]
  • Modified code in code_generator.dart to use DartFormatter.latestLanguageVersion as required by dart_style 3.x.

Test and generated code improvements:

  • Updated test expectations and generated code to match new formatting conventions from dart_style 3.x, primarily by collapsing multi-line collections and function signatures into single lines for conciseness. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

Changelog:

  • Added a new entry in CHANGELOG.md to document these updates and compatibility improvements.

@defuncart

Copy link
Copy Markdown
Collaborator

@tegarnugroho Thank you for raising this issue and providing a fix. I wasn’t able to reproduce the problem with the latest Flutter versions, though I can see how dependency conflicts could occur for transitive dependencies that rely on dart_style ^3.0.0.

After looking into the root cause more closely, I opened #66, which removes the dart_style dependency entirely. In my opinion, this is the better long-term solution, so I’m going to close this PR in favor of that approach.

@defuncart defuncart closed this May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants