We can create Circular image using the Container with decoration property, but how to create circular icon. In this example you can find to create circular icon inside button. In the above example we used Button style property with ElevatedButton and added shape as CircleBorder() This will return an circular edit icon with elevation property.
ElevatedButton(
onPressed: () {
_pickImage();
},
child: Icon(Icons.edit, color: Colors.white),
style: ElevatedButton.styleFrom(
shape: CircleBorder(),
padding: EdgeInsets.all(2),
primary: Colors.blue, // <-- Button color
onPrimary: Colors.red, // <-- Splash color
),
)
![]()
How to display snackbar infinite duration in a flutter application
How to place a listview inside a SingleChildScrollView but prevent them from scrolling separately?
Fix Scaffold.of() Called Without Scaffold Exception - RRutors
How do i make circular icon Inside Button ?
How do i change the OutlineInputBorder color?
How can i use hexadecimal color code in Flutter?
How to find the Screen orientation in flutter
How does Flutter load images?
How to remove debug banner in flutter?
How to change package name in flutter?
How to make a widget Center vertically inside a SingleChildScrollView
What corresponds to Intent in Flutter?
How do I open a web browser (URL) from my Flutter code?
What is Flutter?
Can we use Container color and decoration properties at once?
Fix Flutter Null Safety Issue with RRutors
Vertical Divider is Not Showing in my Flutter Application
How to check the given value is a number or not in dart?
Fix MediaQuery.of() Error in Flutter with RRutors Guide
OS Error: A required privilege is not held by the client errno = 1314
Fix MissingPluginException Error in Flutter with RRutors
How to remove Yellow lines under Text Widgets in Flutter?
How can i get document id in Flutter Firestore?
How to create Toast in Flutter?
Fix Navigator Context Issue in Flutter with RRutors
How to create Gradient background for AppBar in Flutter
How to convert a String value to double in flutter?
How do we save the data in browser's cookies using the Flutter web?
How do i make CachedNetwork image as rounded circle in flutter?
How to set the TextFormField/TextField border color
How to deactivate back button in flutter?
Flutter Questions and Answers
How to change the application launcher icon on Flutter?
How to make shadow for Container widget Flutter?
How do I supply/set an initial value to a text field in Flutter ?
How do i make TextButton full width in flutter?
How to Close Flutter application Programmatically?
How to navigate to new screen without back screen
Fix Flutter Bottom Overflowed Error in Your App - RRutors
Flutter - Vertical Divider - How to add Vertical Divider?