Circle Image Flutter Code Example


Example 1: circle avatar from image asset flutter

CircleAvatar(     radius: 16.0,     child: ClipRRect(         child: Image.asset('profile-generic.png'),         borderRadius: BorderRadius.circular(50.0),     ), ),

Example 2: Flutter give image rounded corners

ClipRRect(     borderRadius: BorderRadius.circular(8.0),     child: Image.network(         subject['images']['large'],         height: 150.0,         width: 100.0,     ), )

Example 3: how to make an image contained in circle avatar in flutter

CircleAvatar(                 radius: 30.0,                 backgroundImage:                     NetworkImage("${snapshot.data.hitsList[index].previewUrl}"),                 backgroundColor: Colors.transparent,               )

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable