Comment on page
CircleImage
The CircleImage widget is used to show a circular image from uploaded assets or the URL link. The CircleImage widget can display the different types of images such as JPEG, PNG, GIF, Animated GIF, WebP, Animated WebP, BMP, and WBMP.

Here's how you can add the CircleImage widget to your project:
- 1.Drag the CircleImage widget from the Base Elements tab (in the Widget Panel) or add it directly from the widget tree.
- 2.Move to the Property Editor (on the right side of your screen) and scroll down to the Image section.
- 3.Find the Path property and enter the URL for the new image.
- 4.Find the Cache checkbox below, click on it to checkmark. Enabling cache will store the image and display it even when the internet is not available.

Every CircleImage widget added to the project will show a random image from picsum.com by default.
You can increase or decrease the circular shape of the image using the Radius property.
To change the size of the circular shape of the image:
- 1.Select the CircleImage from the widget tree or from the canvas area.
- 2.Move to the Property Editor (on the right side of your screen) and scroll down to the Image section.
- 3.Find the Radius property.
- 4.There are three ways to change the image size:
- 1.To set to an exact size, select PX and enter the desired values.
- 2.To set the dimensions as a % of the screen size, select % and enter the desired value.
.gif?alt=media&token=0ebb151c-a979-4787-a5d7-89001ada4cd0)
Changing the Box Fit value allows you to control how the image should display inside the CircleImage widget. Various options under the Box Fit property helps you scale (grow or shrink in size) the image inside the CircleImage widget.
To change the Box Fit value:
- 1.Select CircleImage from the widget tree or from the canvas area.
- 2.Move to the Property Editor (on the right side of your screen) and scroll down to the Image section.
- 3.Find the Box Fit dropdown, try changing it to the other values to get the perfect image.
.gif?alt=media&token=e0b31aca-1d67-4dbd-86f3-cebb0ce89433)
Changing the Box Fit property for the CircleImage will only have an effect if the image has a different height and width. To try it out, you can replace the URL path for the image with https://picsum.photos/id/237/200/300.
Here are all the options that are available for the Box Fit property.
Cover
Fit Width
Contain
Fit Height
Scale Down
Fill
Cover: It shows the image as small as possible while still covering the entire Image widget.
Fit Width: It tries to show the full width of the image, and does not care about the height even if the image gets clipped vertically.

Contain: It shows the image as large as possible while still containing entirely in the Image widget.
.
Fit Height: It tries to show the full height of the image, and does not care about the width even if the image gets clipped horizontally.
Scale Down: It aligns the image in the center and if required it can also shrink the image(Keeping it proportional) to make it fully visible.

Fill: It shows the image as the exact size of the Image widget by distorting the image’s aspect ratio.

To perform any action on click of the CircleImage, add an Action in FlutterFlow. You can find the instructions on adding the Action here.
To show the data retrieved from your Firestore collection and document into the CircleImage widget, ensure you:
- 1.
- 2.
- 3.
- 4.
Last modified 2mo ago