美文网首页Flutter
flutter 显示本地默认

flutter 显示本地默认

作者: Victory_886 | 来源:发表于2020-07-02 13:38 被阅读0次

简单的flutter 显示网络图片之前显示本地默认图片

Stack(
                    children: <Widget>[
                      Container(
                        child: Image.asset(musicDefaultBgImg),
                      ),
                      Container(
                        child: Image.network(
                          "图片地址",
                          fit: BoxFit.fill,
                        ),
                      ),
      ]
)

相关文章

网友评论

    本文标题:flutter 显示本地默认

    本文链接:https://www.haomeiwen.com/subject/xexrqktx.html