How to Show an Local image till the NetworkImage() Loads Up in flutter?

前端 未结 9 1005
忘掉有多难
忘掉有多难 2021-02-13 03:15
            new CircleAvatar(
                              backgroundColor: Colors.black87,
                              backgroundImage: new NetworkImage(url),
               


        
9条回答
  •  失恋的感觉
    2021-02-13 03:32

    While large images load, show a fallback asset!

     new PlutoImage.networkWithPlaceholder("http://68.media.tumblr.com/f7e2e01128ca8eb2b9436aa3eb2a0a33/tumblr_ogwlnpSpcU1sikc68o1_1280.png", new Image.asset("assets/placeholder.png"));
    

    https://github.com/FaisalAbid/pluto

提交回复
热议问题