Skip to content

Instantly share code, notes, and snippets.

@mohammadkarbalaee
Created February 22, 2023 16:23
Show Gist options
  • Save mohammadkarbalaee/df075ad52e96a456d8b6a9283c89091c to your computer and use it in GitHub Desktop.
Save mohammadkarbalaee/df075ad52e96a456d8b6a9283c89091c to your computer and use it in GitHub Desktop.
The trick to make an circle image in Flutter

Circle image in Flutter

wrap your image inside a CliRRect and give the BorderRadius.circular("width") to this widget which "width" is the width of the image itself.

Here is an example:

ClipRRect(
  borderRadius: BorderRadius.circular(10),
  child: Image.network(
    'link'
    width: 10,
  )
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment