skip to Main Content

In my flutter app I created a splash screen.I have one problem.I can not make center image circular image.What shoudld I write instead of center here android:gravity="center" ?
I share the view of my splash screen.You will understand which image I want to make circular.

screenshoot of splash screen

I tried to write fill,center-fill instead of center,but none of them helped…

2

Answers


  1. you can use CircleAvatar od ClipOval
    both of them would achive that easily

    Login or Signup to reply.
  2. you can use CircleAvatar class

    If the avatar is to have an image, the image should be specified in the backgroundImage property:

    CircleAvatar(
      backgroundImage: NetworkImage(userAvatarUrl),
    )
    

    also you can refer https://api.flutter.dev/flutter/material/CircleAvatar-class.html#material.CircleAvatar.1

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search