From ae63de3a81a4982ddb8202210c23abb9fb255657 Mon Sep 17 00:00:00 2001 From: George Herbert Date: Wed, 20 Nov 2019 09:39:24 +0000 Subject: [PATCH] Add subj as per #4 --- README.md | 1 + resources/liveTemplates/Flutter.xml | 51 ++++++++++++++++------------- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index b479c2b..efb0869 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ An Intellij & Android Studio plugin that adds Live Templates to your IDE saving |`singleChildSV`|Single Child Scroll View|Creates a scroll view with a single child|[View Docs](https://api.flutter.dev/flutter/widgets/SingleChildScrollView-class.html)| |`streamBldr`| Stream Builder |Creates a new StreamBuilder that builds itself based on the latest snapshot of interaction with the specified stream |[View Docs](https://docs.flutter.io/flutter/widgets/StreamBuilder-class.html)| |`statefulBldr`|Stateful Builder|Creates a widget that both has state and delegates its build to a callback. Useful for rebuilding specific sections of the widget tree.|[View Docs](https://api.flutter.dev/flutter/widgets/StatefulBuilder/StatefulBuilder.html)| +|`subj`|Subject|A BehaviorSubject is also a broadcast StreamController which returns an Observable rather than a Stream.|[View Docs](https://pub.dev/documentation/rxdart/latest/rx/BehaviorSubject-class.html)| |`text`| |Creates a Text Widget|[View Docs](https://docs.flutter.io/flutter/widgets/Text-class.html)| ### Cupertino Specific diff --git a/resources/liveTemplates/Flutter.xml b/resources/liveTemplates/Flutter.xml index d346b0c..627b155 100644 --- a/resources/liveTemplates/Flutter.xml +++ b/resources/liveTemplates/Flutter.xml @@ -1,7 +1,7 @@ -