Skip to content

A collection of my personal flutter / dart Live Templates which I use.

Notifications You must be signed in to change notification settings

swissonid/flutter_dart_live_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_dart_live_template

A collection of my personal Flutter / Dart Live Templates which I use.

To import live template configuration into your Intellij / WebStorm / Android Studio:

  1. Download the jar.
  2. Open Intellij / WebStorm / Android Studio
  3. On the File menu, click Import Settings.
  4. Specify the path to the JAR file with the exported live template configuration
  5. In the Import Settings dialog box, select the Live templates check box and click OK.
  6. After restarting IntelliJ IDEA, you will see the imported live templates on the Live Templates page of the Settings / Preferences Dialog.
  7. If everything worked well you should see something like that in your Live Templates Screenshot Live Templates

Live Templates in Action 🎬

buitvaldep

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.

Live Template builtvaldep

builtvaldevdep

The Live Templates builtvaldevdep adds all the needed dev_dependencies to your project.

Live Template builtvaldevdep

builtvalf

The Live Templates builtvalf creates a Built Value based on your file name.

Live Template builtvalf

builtvalfs

The Live Templates builtvalfs is just an varian of builtvalf which adds the line of code for the serializer to the generated Built Value.

Screenshot Live Templates builtvalfs

builtval

The Live Templates builtval just adds a Built Value to the file.

Screenshot Live Templates builtval

serjson

The Live Templates serjson generates the boilerplate code for a an serializer with the StandartJsonPlung.

Screenshot Live Templates serjson

Todos ✅ / Ideas 💡

  • Get the newest version for the builtvaldevdep sniped live from pub.dartlang.org

  • Make renaming of Built Value easier

Disclaimer Flutter

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

Screenhot flutter Live Templates

About

A collection of my personal flutter / dart Live Templates which I use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published