A collection of my personal Flutter / Dart Live Templates which I use.
- Download the jar.
- Open Intellij / WebStorm / Android Studio
- On the File menu, click Import Settings.
- Specify the path to the JAR file with the exported live template configuration
- In the Import Settings dialog box, select the Live templates check box and click OK.
- After restarting IntelliJ IDEA, you will see the imported live templates on the Live Templates page of the Settings / Preferences Dialog.
- If everything worked well you should see something like that in your Live Templates
The Live Templates buitvaldep
adds all the needed dart packages to your project. Do not forgett to add the dev_dependencies with . Right now the version are code in the Live Template, I will try to make it dynamic with a request to pub.dartlang.org to get the latest version.
The Live Templates builtvaldevdep
adds all the needed dev_dependencies to your project.
The Live Templates builtvalf
creates a Built Value based on your file name.
The Live Templates builtvalfs
is just an varian of builtvalf
which adds the line of code for the serializer to the generated Built Value.
The Live Templates builtval
just adds a Built Value to the file.
The Live Templates serjson
generates the boilerplate code for a an serializer with the StandartJsonPlung.
-
Get the newest version for the builtvaldevdep sniped live from pub.dartlang.org
-
Make renaming of Built Value easier
The two Live Templates (snk & stmbld) in the flutter section, are just my implementation of the snippes from Filip Hracek which you can see at the flutter talk Build reactive mobile apps with Flutter at Google I/O or in The Boring Flutter Development Show, Ep. 4