Skip to content

Commit bb229c2

Browse files
committed
Fix trailing commas on some widgets to help dartfmt
1 parent 4ad5471 commit bb229c2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

resources/META-INF/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<idea-plugin>
33
<id>com.herbert.george.flutter-snippets</id>
44
<name>Flutter Snippets</name>
5-
<version>0.1.8</version>
5+
<version>0.1.9</version>
66
<vendor>George Herbert</vendor>
77
<description><![CDATA[
88
<p>Provides live templates for Flutter to save time writing boilerplate.</p>
@@ -105,7 +105,7 @@ The following commands are supported:
105105
<td>Creates a Text Widget</td>
106106
</tr>
107107
</table>]]></description>
108-
<change-notes>AspectRatio (Flutter Widget of the Week)</change-notes>
108+
<change-notes>Fix trailing commas on some widgets to help dartfmt</change-notes>
109109
<idea-version since-build="141.0" />
110110
<depends>com.intellij.modules.java</depends>
111111
<extensions defaultExtensionNs="com.intellij">

resources/liveTemplates/Flutter.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</context>
1111
</template>
1212
<!-- CustomScrollView-->
13-
<template name="customScrollV" value="CustomScrollView(&#10;slivers: &lt;Widget&gt;[&#10;$childWidget1$,&#10;$childWidget2$,&#10;$childWidget3$,&#10;],&#10;)" description="New CustomScrollView" toReformat="false" toShortenFQNames="true">
13+
<template name="customScrollV" value="CustomScrollView(&#10;slivers: &lt;Widget&gt;[&#10;$childWidget1$,&#10;$childWidget2$,&#10;$childWidget3$,&#10;],&#10;)," description="New CustomScrollView" toReformat="false" toShortenFQNames="true">
1414
<variable name="childWidget1" expression="&quot;childWidget1&quot;" defaultValue="" alwaysStopAt="true" />
1515
<variable name="childWidget2" expression="&quot;childWidget2&quot;" defaultValue="" alwaysStopAt="true" />
1616
<variable name="childWidget3" expression="&quot;childWidget3&quot;" defaultValue="" alwaysStopAt="true" />
@@ -154,7 +154,7 @@
154154

155155
<!-- Container-->
156156

157-
<template name="container" value="Container(&#10; child: $Widget$(),&#10;)" description="Create Container Widget" toReformat="true" toShortenFQNames="true">
157+
<template name="container" value="Container(&#10; child: $Widget$(),&#10;)," description="Create Container Widget" toReformat="true" toShortenFQNames="true">
158158
<variable name="Widget" expression="&quot;Widget&quot;" defaultValue="" alwaysStopAt="true" />
159159
<context>
160160
<option name="DART_STATEMENT" value="true" />
@@ -163,7 +163,7 @@
163163

164164
<!-- Row-->
165165

166-
<template name="row" value="Row(&#10; children: &lt;Widget&gt;[$goto$],&#10;)" description="Create Row Widget" toReformat="true" toShortenFQNames="true">
166+
<template name="row" value="Row(&#10; children: &lt;Widget&gt;[$goto$],&#10;)," description="Create Row Widget" toReformat="true" toShortenFQNames="true">
167167
<variable name="goto" expression="&quot;&quot;" defaultValue="" alwaysStopAt="true" />
168168
<context>
169169
<option name="DART_STATEMENT" value="true" />
@@ -172,7 +172,7 @@
172172

173173
<!-- Column-->
174174

175-
<template name="column" value="Column(&#10; children: &lt;Widget&gt;[$goto$],&#10;)" description="Create Column Widget" toReformat="true" toShortenFQNames="true">
175+
<template name="column" value="Column(&#10; children: &lt;Widget&gt;[$goto$],&#10;)," description="Create Column Widget" toReformat="true" toShortenFQNames="true">
176176
<variable name="goto" expression="&quot;&quot;" defaultValue="" alwaysStopAt="true" />
177177
<context>
178178
<option name="DART_STATEMENT" value="true" />
@@ -181,15 +181,15 @@
181181

182182
<!-- Text-->
183183

184-
<template name="text" value="Text('$text$')" description="Create Text Widget" toReformat="true" toShortenFQNames="true">
184+
<template name="text" value="Text('$text$')," description="Create Text Widget" toReformat="true" toShortenFQNames="true">
185185
<variable name="text" expression="&quot;text&quot;" defaultValue="" alwaysStopAt="true" />
186186
<context>
187187
<option name="DART_STATEMENT" value="true" />
188188
</context>
189189
</template>
190190

191191
<!-- AspectRatio-->
192-
<template name="aspectRatio" value="AspectRatio(&#10;aspectRatio: $aspectRatio$,&#10;child: $child$&#10;)" description="New AspectRatio Widget" toReformat="false" toShortenFQNames="true">
192+
<template name="aspectRatio" value="AspectRatio(&#10;aspectRatio: $aspectRatio$,&#10;child: $child$&#10;)," description="New AspectRatio Widget" toReformat="false" toShortenFQNames="true">
193193
<variable name="aspectRatio" expression="$aspectRatio$" defaultValue="" alwaysStopAt="true" />
194194
<variable name="child" expression="$child$" defaultValue="" alwaysStopAt="true" />
195195
<context>

0 commit comments

Comments
 (0)