美文网首页flutter
Flutter之IndexedStack组件

Flutter之IndexedStack组件

作者: 习惯了_就好 | 来源:发表于2019-03-26 15:15 被阅读2次
/**
 *  集成自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/oqngvqtx.html