Where is awesome Flutter snippet extension? - flutter

Many tutorials recommend using awesome flutter snippet extension by Neevash Ramdial.
But i cannot find it in the VSC extension marketplace no more!
You guys having problem with this as well?

While trying to update the project with Flutter 3 support, the organization was accidentally deleted due to a tooling bug.
The plugin has since been reuploaded to the VSCode marketplace, but users will need to reload the extension since the IDs are different.
Very sorry for the inconvenience caused here 💙
Link: https://marketplace.visualstudio.com/items?itemName=Nash.awesome-flutter-snippets
-- Nash

Awesome Flutter Snippets is a collection of commonly used Flutter classes and methods. It increases your speed of development by eliminating most of the boilerplate code associated with creating a widget. Widgets such as StreamBuilder and SingleChildScrollView can be created by typing the shortcut streamBldr and singleChildSV respectively.
It is built-in in Android Studio/VsCode. You can try by using short keyword like when you'll create StatefulWidget you can type stf and it give you hint as StatefulWidget.

Related

How to import flutter module to a flutter project?

I have a flutter module project and I want to import it into another existing flutter project, how can I do this?
I think this may not be possible since there will be two main function and don't know how they communicate.
Are there any suggestion so I can combine the these two things? I want to open the module app in another flutter app.
Flutter yet to support this feature out of the box, see issue #64542 for more details.
Since the feature request that was mentioned in above is still open, the best solution that I can think of is by merging another application to your existing flutter application by importing the application you want to merge as a module. Check also this SO post, where this kind of scenario was explained.

Flutter - Flame and Internationalization?

what is the recommended i18n method for Dart programs without Flutter widgets (Games using Flame package)?
I tried the dart Intl package and the Flutter intl package with the Android Studio plugin but can't get it running properly. I use DeviceLocale to get the locale but want to use proper classes/methods to read the strings in each locale from files (e.g. arb), but I didn't figure out how to do it with the given tools. The Flutter intl package always wants a context for translations which I don't have necessarily in a Flame game. Of course I have a working solution based on a Translation class and Maps, but I expect there should be a common way to do this properly.
Does anyone have examples on how to implement this in a clean way?
Regards,
Ralph
Since Flutter Intl 1.8.0 version, you should be able to reference string keys without passing the context.
heyy there have you tried this package easy_localization , by far this is the best i have got when it comes to localizations
I am also developing a game and hit a limitation similar to yours. For that I developed a tool that is almost compatible with flutter gen-l10n but can handle non Flutter apps as well. If you want to give it a try it is available on pub.dev: https://pub.dev/packages/land. It also solves some ICU message limitations found in the Flutter provided solution.

How to Repack a Flutter Plugins to use for Flutter Web?

for this specific case, I'm trying to use Provider on Flutter Web,
but I'm sure that this will not be the last flutter package
that I will use on flutter web, so I'm trying to understand
how to solve this as a generic situation.
I came across this question :
Using flutter mobile packages in flutter web
and this answer:
you can also use libraries that are referencing Flutter framework that was repackaged for flutter_web. Like provider was forked [link]. You only can't use plugins atm.
For my understanding the suggested procedure is
Fork
Repack
Import
While "Fork" is straight forward, feel the need to ask:
How to Repack a Flutter Plugins to use for Flutter Web?
since this time I got lucky and Kevin already did the repacking
How do I import it? [edit: nevermind... ]
Thank you in advance
got the answer here
just
clone the repository you want to use,
copy the files in your project
fix the errors
then everything should work

Visual Studio Code adding 'prefix0' in Flutter

I have recently switch from Android Studio to VS Code to work on my Flutter projects but I have an issue with it.
VS Code keeps adding "prefix0." before all classes as soon as I am using auto-completion and I didn't find a way to get rid of it.
I have seen that some VS extensions for CSS can auto-prefix some parts of code but I do not have any CSS extensions.
Thanks
It's a bug in Dart Code that happened because it failed to understand another import already exported the class used.
A typical example is, flutter/material.dart was already imported. But by typing Widget, it'd import flutter/widget.dart and with a prefix.
https://github.com/Dart-Code/Dart-Code/issues/1847
This has been fixed. Upgrading your Dart Code and flutter SDK should fix the issue.
The issue is caused by there being one or more duplicates of class names. Check that you do not have classes with the same name imported that may conflict with each other.

Is there any code inpector like sonarqube for flutter

Is there any code inspector like sonarqube for flutter.
As I am building a mobile app using flutter, I want my code quality very good. That's why I was searching sonarqube for flutter, but I was not able to find this.
I just released a Flutter / Dart plugin for SonarQube.
It is here : https://github.com/insideapp-oss/sonar-flutter
You can add analysis_options.yaml in the root of your project to enable extra checks and customize static analysis. You can read about it here
hope you are doing good.
While working on Azure CI integration, I come to know that there is no official support for flutter/dart from official 'SONAR QUBE'.
It will be great if flutter/dart community/people/developer cast their votes here:
https://community.sonarsource.com/t/support-for-dart/13555