Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateful and Statless Widget #6

Closed
adriank opened this issue Apr 12, 2019 · 12 comments
Closed

Stateful and Statless Widget #6

adriank opened this issue Apr 12, 2019 · 12 comments
Assignees

Comments

@adriank
Copy link

adriank commented Apr 12, 2019

Hi,

You removed Stateful and Statless Widget from this library because Dart Code has them. How to access them? I don't see anything similar in their documentation.

Thanks,
Adrian

@ch3ckmat3
Copy link

Yes, same here. please bring these back!!!

@ch3ckmat3
Copy link

like now!

@YeFei572
Copy link

YeFei572 commented Apr 17, 2019

+1,
I hava install the older version. but it's fell bad.
image

@Nash0x7E2
Copy link
Owner

Hello,
I removed Stateful/Stateless widget from the extension since they are included with the official DartCode plugin and would sometimes conflict with one another while typing. I've noticed a few times while coding that intelisense would show Stateful templates from both Awesome Flutter Snippets and Dart code making it easy to accidentally chose the wrong snippet.

That said, I will add both snippets back to the plugin and release an update later today since a lot of people have requested that they are re-added.

Sorry for the inconvenience,
Nash

@Nash0x7E2 Nash0x7E2 self-assigned this Apr 19, 2019
@adriank
Copy link
Author

adriank commented Apr 19, 2019

@Nash0x7E2 how did you get these snippets from the official dart-code extension? They are not there. Maybe you have them from another extension?

@Nash0x7E2
Copy link
Owner

They usually come up whenever I start typing "state..." or whenever I hit Ctrl + Space.

I have no other Flutter related extensions installed so I'm positive they're coming from DartCode. The three snippets I see the most are Stateless Widgets, Stateful Widget and Stateful widget with animation controller.

@Nash0x7E2
Copy link
Owner

I just checked the source and yes, it is indeed coming from DartCode https://github.com/Dart-Code/Dart-Code/blob/master/snippets/flutter.json

@adriank
Copy link
Author

adriank commented Apr 19, 2019

I see the same snippets, but they're gone if I move to the new version of your extension. Maybe VSC assigned shortcuts to your extension and they're not available from Dart-code?

@Nash0x7E2
Copy link
Owner

That's really strange but I'll have the snippets added back to the extension this evening.

@ch3ckmat3
Copy link

@Nash0x7E2 Thanks man!
Dart-Code snippet shortcuts are not intuitive, I didn't event notice until I read your release notes... then I had to find them to see event if they existed, and are even functioning as expected.

Do notify here as you post update.

👍🙌

@Nash0x7E2
Copy link
Owner

@adriank @ch3ckmat3 The fix is live on the VsCode marketplace.

@fibbers
Copy link

fibbers commented Apr 22, 2019

Thanks for bringing the snippets back! 👍

For anyone else not seeing the Flutter snippets from Dart-Code (I also didn't know about them and didn't see them):
That might be related to Dart-Code/Dart-Code#1625 and should be fixed in v2.26.0 reading the milestone comments.

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

No branches or pull requests

5 participants