flutter --- Live Templates

https://github.com/AweiLoveAndroid/Flutter-learning/tree/master/code_plugins

下载settings.jar,导入到as中
原先我以为会覆盖整个样式,或者把之前的Live Templates全部覆盖
会发现它只会覆盖你原来的as的flutter样式,其它不变,这是怎么做到的?(解释TODO)

Short keys Description
bab Create AnimatedBuilder
bu Create Build()
bufb Create FutureBuilder
bulb Create LayoutBuilder
buob Create OrientationBuilder
bustf Create StatefulBuilder
bustr Create StreamBuilder
cc Create CustomClipper
cen Create Center
col Create Column
con Create full Container
cp Create your CustomPainter
csv CustomScrollView + SliverPadding and its child with padding.
csv2 use CustomScrollView + SliverGrid
gv Create GridView.count
inh Create Inherited
lv Create normal ListView
lvb Create ListView.builder
lvd Create ListView with divider
lvr Create RadioListTile
lvt Create ListView with more ListTile
mainstf Create StatefulWidget
mainstl Create StatelessWidget
me Create methods
mep Create private methods
row Create Row
sb Create SizedBox
ssv Create SingleChildScrollView
stanim Create Stateful(with AnimationController)
stf Create full StatefulWidget with full lifecycle
stl Create StatelessWidget
svc Create CustomScrollView
te Create normal Text

定制你想要的代码模板,做双手的解放者。
观察其中的编写语法

new AnimatedBuilder(
  animation: $animation$,
  child: $child$,
  builder: (BuildContext context, Widget child) {
    return Container();
  },
),

得到 ** namename ** 就可以取代变化的值

发布了74 篇原创文章 · 获赞 6 · 访问量 8676
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 创作都市 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览