2. Wrap控件

Wrap(
        spacing: space,
        runSpacing: space,
        alignment: WrapAlignment.center,
        runAlignment: WrapAlignment.center,
        verticalDirection: VerticalDirection.up,
        textDirection: TextDirection.rtl,
        children: avatars.reversed
            .map((e) => DUIAvatar(
                  url: e,
                  radius: 2,
                  width: w,
                  height: h,
                  loadingWidget: loadingWidget,
                  failedWidget: failedWidget,
                ))
            .toList(),
      )
Wrap({
    Key key,
    this.direction = Axis.horizontal,
    this.alignment = WrapAlignment.start,
    this.spacing = 0.0,
    this.runAlignment = WrapAlignment.start,
    this.runSpacing = 0.0,
    this.crossAxisAlignment = WrapCrossAlignment.start,
    this.textDirection,
    this.verticalDirection = VerticalDirection.down,
    this.clipBehavior = Clip.hardEdge,
    List<Widget> children = const <Widget>[],
  })

3. 疑问

  1. Flutter里面如何push一个类似alert的页面,让透明的地方的点击响应传给上一个页面
Copyright © 413132340@qq.com 2020 all right reserved,powered by Gitbook该文章修订时间: 2020-11-30 07:49:29

results matching ""

    No results matching ""