You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`alertDialog`|[View Docs](https://docs.flutter.io/flutter/widgets/AlertDialog-class.html)|Creates a showDialog that returns with AlertDialog|
9
9
|`animBldr`|[View Docs](https://docs.flutter.io/flutter/widgets/AnimationBuilder-class.html)|Creates an AnimationBuilder|
10
+
|`customScrollV`|[View Docs](https://api.flutter.dev/flutter/widgets/CustomScrollView-class.html)|Creates a CustomScrollView|
10
11
|`futureBldr`|[View Docs](https://docs.flutter.io/flutter/widgets/FutureBuilder-class.html)|Creates a FutureBuilder|
12
+
|`layoutBldr`|[View Docs](https://api.flutter.dev/flutter/widgets/LayoutBuilder-class.html)|Creates a LayoutBuilder|
11
13
|`listViewBldr`|[View Docs](https://docs.flutter.io/flutter/widgets/ListView.builder.html)|Creates a ListView.builder()|
12
14
|`scfAll`|[View Docs](https://docs.flutter.io/flutter/material/Scaffold-class.html)|Creates a Scaffold containing an Appbar, BottomNavigationBar and FloatingActionButton|
13
15
|`scfAppBar`||Creates a Scaffold containing an Appbar|
14
16
|`scfAppBarFab`||Creates a Scaffold containing an Appbar and Floating Action Button|
15
17
|`scfAppBarBtmNav`||Creates a Scaffold containing an Appbar and Bottom Navigation Bar|
18
+
|`singleChildScrollV`|[View Docs](https://api.flutter.dev/flutter/widgets/SingleChildScrollView-class.html)|Creates a SingleChildScrollView|
16
19
|`streamBldr`|[View Docs](https://docs.flutter.io/flutter/widgets/StreamBuilder-class.html)|Creates a StreamBuilder|
Copy file name to clipboardExpand all lines: resources/META-INF/plugin.xml
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
<idea-plugin>
3
3
<id>com.herbert.george.flutter-snippets</id>
4
4
<name>Flutter Snippets</name>
5
-
<version>0.1.2</version>
5
+
<version>0.1.3</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>
@@ -19,10 +19,18 @@ The following commands are supported:
19
19
<tr>
20
20
<td>animBldr</td>
21
21
<td>Creates an AnimationBuilder</td>
22
+
</tr>
23
+
<tr>
24
+
<td>customScrollV</td>
25
+
<td>Creates a CustomScrollView</td>
22
26
</tr>
23
27
<tr>
24
28
<td>futureBldr</td>
25
29
<td>Creates a FutureBuilder</td>
30
+
</tr>
31
+
<tr>
32
+
<td>layoutBldr</td>
33
+
<td>Creates a LayoutBuilder</td>
26
34
</tr>
27
35
<tr>
28
36
<td>listViewBldr</td>
@@ -43,13 +51,17 @@ The following commands are supported:
43
51
<tr>
44
52
<td>scfAppBarBtmNav</td>
45
53
<td>Creates a Scaffold containing an Appbar and Bottom Navigation Bar</td>
54
+
</tr>
55
+
<tr>
56
+
<td>singleChildScrollV</td>
57
+
<td>Creates a SingleChildScrollView</td>
46
58
</tr>
47
59
<tr>
48
60
<td>streamBldr</td>
49
61
<td>Creates a StreamBuilder</td>
50
62
</tr>
51
63
</table>]]></description>
52
-
<change-notes>Add support for animBldr (Animation Builder) and a few various Scaffold options (scfAppBar, scfAppBarFab and scfAppBarBtmNav)</change-notes>
64
+
<change-notes>Add support for customScrollV (CustomScrollView), layoutBldr (LayoutBuilder) and singleChildScrollV (SingleChildScrollView)</change-notes>
<!-- New Scaffold with AppBar, Fab and Bottom Nav Bar-->
59
83
<template name="scfAll" value="int _index = 0; // Make sure this is outside build(), otherwise every setState will chage the value back to 0 return Scaffold( appBar: AppBar( title: Text('$appbarTitle$'), ), body: Center( child: Container(child: Text('You are looking at the message for bottom navigation item $_index')), ), bottomNavigationBar: BottomNavigationBar( onTap: (tappedItemIndex)=> setState(() { _index = tappedItemIndex; }), currentIndex: _index, items: [ BottomNavigationBarItem(icon: Icon(Icons.av_timer), title: Text('$navBarItem1Text$')), BottomNavigationBarItem(icon: Icon(Icons.add), title: Text('$navBarItem2Text$')) ]), floatingActionButton: FloatingActionButton( onPressed: () => setState(() { =_index = 0; }), tooltip: 'Reset Navigation Index', child: Icon(Icons.clear), //Change Icon ), floatingActionButtonLocation: FloatingActionButtonLocation.endFloat, //Change for different locations );" description="New Scaffold with AppBar, Fab and Bottom Nav Bar" toReformat="false" toShortenFQNames="true">
<templatename="scfAppBarFab"value="int _index = 0; // Make sure this is outside build(), otherwise every setState will chage the value back to 0 return Scaffold( appBar: AppBar( title: Text('$appbarTitle$'), ), body: Center( child: Container(child: Text('You tapped the FAB $_index times')), ), floatingActionButton: FloatingActionButton( onPressed: () => setState(() { _index++; }), tooltip: 'Increment Counter', child: Icon(Icons.add), //Change Icon ), floatingActionButtonLocation: FloatingActionButtonLocation.endFloat, //Change for different locations );"description="New Scaffold with AppBar and Fab"toReformat="false"toShortenFQNames="true">
<!-- New Scaffold with AppBar and Bottom Nav Bar-->
83
107
<templatename="scfAppBarBtmNav"value="int _index = 0; // Make sure this is outside build(), otherwise every setState will chage the value back to 0 return Scaffold( appBar: AppBar( title: Text('$appbarTitle$'), ), body: Center( child: Container(child: Text('You are looking at the message for bottom navigation item $_index')), ), bottomNavigationBar: BottomNavigationBar( onTap: (tappedItemIndex) => setState(() { _index = tappedItemIndex; }), currentIndex: _index, items: [ BottomNavigationBarItem(icon: Icon(Icons.av_timer), title: Text('$navBarItem1Text$')), BottomNavigationBarItem(icon: Icon(Icons.add), title: Text('$navBarItem2Text$')) ]) );"description="New Scaffold with AppBar & Bottom Nav Bar"toReformat="false"toShortenFQNames="true">
0 commit comments