Skip to content

✨ Adds workspace support#739

Merged
AlexV525 merged 9 commits intomainfrom
feat/workspace
Mar 18, 2026
Merged

✨ Adds workspace support#739
AlexV525 merged 9 commits intomainfrom
feat/workspace

Conversation

@AlexV525
Copy link
Copy Markdown
Member

@AlexV525 AlexV525 commented Mar 7, 2026

What does this change?

Add pub workspace support to FlutterGen in both execution modes.

This PR:

  • adds build_runner --workspace support to flutter_gen_runner
  • adds fluttergen --workspace support to the command package
  • preserves package-local pubspec.yaml and build.yaml behavior for each workspace member
  • adds a real workspace example plus CI coverage for the new flows
  • documents the required minimum versions: Dart >=3.7.0 and build_runner >=2.12.0

Resolves #731 🎯

Type of change

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.37%. Comparing base (f5ce644) to head (b308cc3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #739      +/-   ##
==========================================
+ Coverage   96.69%   97.37%   +0.67%     
==========================================
  Files          24       24              
  Lines         969      991      +22     
==========================================
+ Hits          937      965      +28     
+ Misses         32       26       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AlexV525 AlexV525 marked this pull request as ready for review March 9, 2026 11:24
@AlexV525 AlexV525 merged commit 40ffc54 into main Mar 18, 2026
5 checks passed
@AlexV525 AlexV525 deleted the feat/workspace branch March 18, 2026 05:26
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.

[BUG]: flutter_gen_runner reads workspace root pubspec.yaml instead of package pubspec.yaml when using build_runner build --workspace

1 participant