📜  在 Flutter 中加载构建器 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:36.854000             🧑  作者: Mango

代码示例1
Image(
  ...
  frameBuilder: (BuildContext context, Widget child, int frame, bool wasSynchronouslyLoaded) {
    return Padding(
      padding: EdgeInsets.all(8.0),
      child: child,
    );
  },
  loadingBuilder: (BuildContext context, Widget child, ImageChunkEvent loadingProgress) {
    return Center(child: child);
  },
)