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
+
|`animBldr`|[View Docs](https://docs.flutter.io/flutter/widgets/AnimationBuilder-class.html)|Creates an AnimationBuilder|
9
10
|`futureBldr`|[View Docs](https://docs.flutter.io/flutter/widgets/FutureBuilder-class.html)|Creates a FutureBuilder|
10
11
|`listViewBldr`|[View Docs](https://docs.flutter.io/flutter/widgets/ListView.builder.html)|Creates a ListView.builder()|
11
12
|`scfAll`|[View Docs](https://docs.flutter.io/flutter/material/Scaffold-class.html)|Creates a Scaffold containing an Appbar, BottomNavigationBar and FloatingActionButton|
13
+
|`scfAppBar`||Creates a Scaffold containing an Appbar|
14
+
|`scfAppBarFab`||Creates a Scaffold containing an Appbar and Floating Action Button|
15
+
|`scfAppBarBtmNav`||Creates a Scaffold containing an Appbar and Bottom Navigation Bar|
12
16
|`streamBldr`|[View Docs](https://docs.flutter.io/flutter/widgets/StreamBuilder-class.html)|Creates a StreamBuilder|
Provides live templates for Flutter to save time writing boiler plate.<br><br>
8
-
9
-
The following commands are supported:
8
+
<p>Provides live templates for Flutter to save time writing boilerplate.</p>
9
+
The following commands are supported:
10
10
<table>
11
11
<tr>
12
12
<th>Shortcut</th>
@@ -15,6 +15,10 @@
15
15
<tr>
16
16
<td>alertDialog</td>
17
17
<td>Creates a showDialog that returns with AlertDialog</td>
18
+
</tr>
19
+
<tr>
20
+
<td>animBldr</td>
21
+
<td>Creates an AnimationBuilder</td>
18
22
</tr>
19
23
<tr>
20
24
<td>futureBldr</td>
@@ -27,19 +31,29 @@
27
31
<tr>
28
32
<td>scfAll</td>
29
33
<td>Creates a Scaffold containing an Appbar, BottomNavigationBar and FloatingActionButton</td>
34
+
</tr>
35
+
<tr>
36
+
<td>scfAppBar</td>
37
+
<td>Creates a Scaffold containing an Appbar</td>
38
+
</tr>
39
+
<tr>
40
+
<td>scfAppBarFab</td>
41
+
<td>Creates a Scaffold containing an Appbar and Floating Action Button</td>
42
+
</tr>
43
+
<tr>
44
+
<td>scfAppBarBtmNav</td>
45
+
<td>Creates a Scaffold containing an Appbar and Bottom Navigation Bar</td>
30
46
</tr>
31
47
<tr>
32
48
<td>streamBldr</td>
33
49
<td>Creates a StreamBuilder</td>
34
50
</tr>
35
-
</table>
36
-
37
-
]]></description>
38
-
<change-notes>Add support for (scfAll) scaffold containing an Appbar, BottomNavigationBar and FloatingActionButton. Other scaffold templates will follow</change-notes>
39
-
<idea-versionsince-build="141.0"/>
51
+
</table>]]></description>
52
+
<change-notes>Add support for animBldr (Animation Builder) and a few various Scaffold options (scfAppBar, scfAppBarFab and scfAppBarBtmNav)</change-notes>
<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 AlertDialog" toReformat="false" toShortenFQNames="true">
58
+
59
+
<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">
<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