Skip to content

Conversation

@c4rl2s0n
Copy link

@c4rl2s0n c4rl2s0n commented Jul 7, 2025

Status

READY/IN DEVELOPMENT
I just wanted to add support for creating BlocBuilder etc for working with Cubits, as I got annoyed by always changing Bloc for Cubit when using these templates.

I was not able to deploy it on my machine, therefore it is not yet tested. However, this should work, as I just added the Cubit-suffix and copied the code that existed already for Blocs.

Breaking Changes

NO

Description

This PR just adds Intentions to the Intellij plugin that allows to create BlocBuilder etc. with the Cubit-Suffix instead of the Bloc-Suffix

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@c4rl2s0n c4rl2s0n requested a review from felangel as a code owner July 7, 2025 09:16
@felangel
Copy link
Owner

Thanks for the PR! I'll take a closer look shortly. I want to see if there is a better way to address the problem you're facing without duplicating all the templates.

@felangel felangel added enhancement New feature or request extension This issue relates to bloc extensions labels Jul 14, 2025
@c4rl2s0n
Copy link
Author

Thank you! That would be great! I just tried to take what I saw and adapt it for my needs. If it would be possible to put like a flag in the template or put a switch in the settings of the plugin, that might also be great.
I am not sure if showing both options (BLoC and Cubit) in the context menu would bloat it unnecessarily, so defining in the settings if one would prefer the intentions for bloc or cubit might be sufficient (not sure how commonly blocs and cubits are mixed, I mostly use cubits for now)

@felangel felangel force-pushed the master branch 2 times, most recently from abff5bd to 4700d6f Compare July 17, 2025 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request extension This issue relates to bloc extensions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants