how to align image top right to the screen in flutter


I tried align top right the image, but that dosen’t work, also I tried to do the positioned widget that also didn’t work

          children: [
              alignment: Alignment.topRight
               other elements
               other elements
               other elements

how can I align the image to top right of the screen?

enter image description here

i want to align the lite purple element


you have to use Align Widget like the code given below

    alignment: Alignment.topRight,
      child: Image.asset("Assets/user.png"))

Answered By – Sneha G Sneha

Answer Checked By – Terry (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *