flutter中的IndexedStack
作者:
lovefo | 来源:发表于
2019-06-20 14:38 被阅读0次/**
* 集成自Stack,用来显示第index个child,
* IndexedStack({
Key key,
AlignmentGeometry alignment = AlignmentDirectional.topStart,
TextDirection textDirection,
StackFit sizing = StackFit.loose,
this.index = 0,
List<Widget> children = const <Widget>[],
})
*/
body: IndexedStack(
index: 2,
alignment: Alignment.center,
children: <Widget>[
Text("第一层"),
Text("第二层"),
Text("第三层"),
],
)
本文标题:flutter中的IndexedStack
本文链接:https://www.haomeiwen.com/subject/boadqctx.html
网友评论