Gorniv / vscode-flutter-files

Quickly create files for flutter using a BLoC pattern
https://marketplace.visualstudio.com/items?itemName=gornivv.vscode-flutter-files
MIT License
59 stars 25 forks source link

Consolidate Efforts for Bloc VSCode Extension #3

Closed felangel closed 5 years ago

felangel commented 5 years ago

Hey @Gorniv 👋

I'm the maintainer of the Bloc Library VSCode Extension.

I noticed there's a lot of overlap between your extension and the official bloc library extension. I'm wondering if you'd be willing to contribute to the official extension instead of maintaining two separate extensions with overlapping functionality.

Let me know what your thoughts are and thanks!

Gorniv commented 5 years ago

Hello @felangel 👋 I am ready to contribute to the official extension, but I have my own idea about the templates for generating files. I have not yet optimized my code for the extension, since this is essentially a fork https://github.com/ivalexa/vscode-angular2-files, optimized for flutter. See the results of the "New Big Pack Block". Let me know what you think, and thank you!

felangel commented 5 years ago

Awesome and great job with the extension 👍

I took a look at the "New Big Pack Block" and it seems to me like it's a very opinionated approach whereas I was thinking of taking a more neutral approach and giving developers the tools to build blocs more quickly but without forcing them to conform to certain app architectures/structures. I personally like what you did with the create individual states/events/blocs more than making assumptions and generating huge chunks of code with all the components integrated in a specific configuration.

Hope that makes sense and let me know what you think?

Gorniv commented 5 years ago

Hi @felangel. Sorry for the long answer. I think that extension needs to generate big sample code with best practices. It is awesome for beginners. I really proud BLoC file and "apply" of the event because it is more simple and flexes. For advanced users, I want to give an opportunity to use a custom template like a folder with templates in the project. And will write example minimal templates.

Gorniv commented 5 years ago

@felangel The extension now supports custom templates for the project.