File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ An Intellij & Android Studio plugin that adds Live Templates to your IDE saving
12
12
| ---------- | ------------------------ | -------------- |
13
13
| ` alertDialog ` | [ View Docs] ( https://docs.flutter.io/flutter/widgets/AlertDialog-class.html ) | Creates a showDialog that returns with AlertDialog|
14
14
| ` animBldr ` | [ View Docs] ( https://docs.flutter.io/flutter/widgets/AnimationBuilder-class.html ) | Creates an AnimationBuilder|
15
+ | ` aspectRatio ` | [ View Docs] ( https://api.flutter.dev/flutter/widgets/AspectRatio-class.html ) | Creates an AspectRatio|
15
16
| ` column ` | [ View Docs] ( https://docs.flutter.io/flutter/widgets/Column-class.html ) | Creates a Column Widget|
16
17
| ` container ` | [ View Docs] ( https://docs.flutter.io/flutter/widgets/Container-class.html ) | Creates a Container Widget|
17
18
| ` customClipper ` | [ View Docs] ( https://api.flutter.dev/flutter/rendering/CustomClipper-class.html ) | Creates a CustomClipper|
Original file line number Diff line number Diff line change 2
2
<idea-plugin >
3
3
<id >com.herbert.george.flutter-snippets</id >
4
4
<name >Flutter Snippets</name >
5
- <version >0.1.7 </version >
5
+ <version >0.1.8 </version >
6
6
<vendor >George Herbert</vendor >
7
7
<description ><![CDATA[
8
8
<p>Provides live templates for Flutter to save time writing boilerplate.</p>
@@ -21,6 +21,10 @@ The following commands are supported:
21
21
<td>Creates an AnimationBuilder</td>
22
22
</tr>
23
23
<tr>
24
+ <td>aspectRatio</td>
25
+ <td>Creates an AspectRatio</td>
26
+ </tr>
27
+ <tr>
24
28
<td>column</td>
25
29
<td>Creates a Column Widget</td>
26
30
</tr>
@@ -101,7 +105,7 @@ The following commands are supported:
101
105
<td>Creates a Text Widget</td>
102
106
</tr>
103
107
</table>]]> </description >
104
- <change-notes >Some new minor widgets. Row, Column, Text and Container </change-notes >
108
+ <change-notes >AspectRatio (Flutter Widget of the Week) </change-notes >
105
109
<idea-version since-build =" 141.0" />
106
110
<depends >com.intellij.modules.java</depends >
107
111
<extensions defaultExtensionNs =" com.intellij" >
Original file line number Diff line number Diff line change 187
187
<option name =" DART_STATEMENT" value =" true" />
188
188
</context >
189
189
</template >
190
-
190
+
191
+ <!-- AspectRatio-->
192
+ <template name =" aspectRatio" value =" AspectRatio( aspectRatio: $aspectRatio$, child: $child$ )" description =" New AspectRatio Widget" toReformat =" false" toShortenFQNames =" true" >
193
+ <variable name =" aspectRatio" expression =" $aspectRatio$" defaultValue =" " alwaysStopAt =" true" />
194
+ <variable name =" child" expression =" $child$" defaultValue =" " alwaysStopAt =" true" />
195
+ <context >
196
+ <option name =" DART_STATEMENT" value =" true" />
197
+ </context >
198
+ </template >
191
199
</templateSet >
You can’t perform that action at this time.
0 commit comments