how to align image top right to the screen in flutter

Issue

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

Column(
          children: [
            Image.asset(
              'assets/design_el_1.png',
              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

Solution

you have to use Align Widget like the code given below

Align(
    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.