title: Flutter: Positioning images in flutter
body: <p>I just started learning flutter of some tutorials, but I have one thing i want to archive. I have problem with positioning images in my code. This is the issue.</p>
  <p><img src="https://i.stack.imgur.com/GJwCp.png" alt="Image under logo" />.</p>
  <p>If someone can recode this because I'm trying 2 days and can't understand how it works.</p>
  <p>Solution I'm trying to find is to position image under logo into top right corner without moving logo and textbars</p>
  <p>Draft of my wanting:</p>
  <p><img src="https://i.stack.imgur.com/qwVOj.png" alt="What i want to do" /></p>
  <p>My codes:</p>
  <p><strong>main.dart</strong></p>
  <pre class="lang-dart prettyprint-override"><code>import 'package:flutter/material.dart';
  import 'package:kafe/screens/login_screen.dart';
   
   
   
  void main() {
    runApp(const MyApp());
  }
   
  class MyApp extends StatelessWidget {
    const MyApp({Key? key}) : super(key: key);
   
    // This widget is the root of your application.
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        title: 'Email and Password Login',
        theme: ThemeData(
          primarySwatch: Colors.brown,
        ),
        home: LoginScreen(),
      );
    }
  }
  
  </code></pre>
  <p><strong>login_screen.dart</strong></p>
  <pre class="lang-dart prettyprint-override"><code>import 'package:flutter/material.dart';
   
  class LoginScreen extends StatefulWidget {
    const LoginScreen({ Key? key }) : super(key: key);
   
    @override
    _LoginScreenState createState() =&gt; _LoginScreenState();
  }
   
  class _LoginScreenState extends State&lt;LoginScreen&gt; {
   // form key
   final _formKey = GlobalKey&lt;FormState&gt;();
   
   // Editing Controller
  final TextEditingController emailController = new TextEditingController();
  final TextEditingController passwordController = new TextEditingController();
  final TextEditingController locationController = new TextEditingController();
   
    @override
    Widget build(BuildContext context) {
   
      //Name field
      final emailField = TextFormField(
        autofocus: false,
        controller: emailController,
        keyboardType: TextInputType.emailAddress,
      //validator: {} {},
      onSaved: (value)
      {
          emailController.text = value!;
   
      },
      textInputAction: TextInputAction.next,
      decoration: InputDecoration(
        prefixIcon: Icon(Icons.account_circle_outlined),
        contentPadding: EdgeInsets.fromLTRB(20, 15, 20, 15),
        hintText: &quot;Вашето име&quot;,
        border: OutlineInputBorder(
          borderRadius: BorderRadius.circular(20),
        ),
      ),
      );
   
      //password field
      final passwordField = TextFormField(
        autofocus: false,
        controller: passwordController,
      //validator: {} {},
      onSaved: (value)
      {
          passwordController.text = value!;
   
      },
      textInputAction: TextInputAction.next,
      decoration: InputDecoration(
        prefixIcon: Icon(Icons.call_end_outlined),
        contentPadding: EdgeInsets.fromLTRB(20, 15, 20, 15),
        hintText: &quot;Вашиот телефонски број&quot;,
        border: OutlineInputBorder(
          borderRadius: BorderRadius.circular(20),
        ),
      ),
      );
   
      //Location field
      final locationField = TextFormField(
        autofocus: false,
        controller: locationController,
   
      //validator: {} {},
      onSaved: (value)
      {
          locationController.text = value!;
   
      },
      textInputAction: TextInputAction.done,
      decoration: InputDecoration(
        prefixIcon: Icon(Icons.add_location_alt_outlined),
        contentPadding: EdgeInsets.fromLTRB(20, 15, 20, 15),
        hintText: &quot;Вашата локација&quot;,
        border: OutlineInputBorder(
          borderRadius: BorderRadius.circular(20),
   
        ),
      )),
   
      // button
   
     loginButton = Material(
      elevation: 5,
      borderRadius: BorderRadius.circular(30),
      color: Colors.redAccent,
      child: MaterialButton(
        padding: EdgeInsets.fromLTRB(20, 15, 20, 15),
        minWidth: MediaQuery.of(context).size.width,
        onPressed: () {},
        child: Text(
          &quot;Логирање&quot;, 
        textAlign: TextAlign.center, 
        style: TextStyle(fontSize: 20,
        color: Colors.white,
        fontWeight: FontWeight.bold,
         ),
        ),
      ),
    );        
   
      return Scaffold(
        backgroundColor: Colors.white,
        body: Center(
          child: SingleChildScrollView(
            child: Container(
              color: Colors.white,
              child: Padding(
                padding: const EdgeInsets.all(35.0),
                child: Form(
                  key: _formKey,
                  child: Column(
                    mainAxisAlignment: MainAxisAlignment.center,
                    crossAxisAlignment: CrossAxisAlignment.center,
                    children: &lt;Widget&gt; [
   
                      SizedBox(
                        width: 130,
   
                        child: SizedBox(
                          child: Image.asset(&quot;assets/top.png&quot;,
                          fit: BoxFit.contain,
                          ),
                          ),
                      ),
   
   
   
                      SizedBox(
                        height: 250,
   
                        child: Image.asset(
                          &quot;assets/logo.png&quot;,
   
                        fit: BoxFit.contain,
                        )
                      ),
   
   
   
   
   
                      emailField,
                      SizedBox(height: 30),
   
                      passwordField,
                      SizedBox(height: 30),
   
                      locationField,
                      SizedBox(height: 30),
                      loginButton,
                      SizedBox(height: 30),
                    ],
                  ),
   
                ),
              ),
            ),
          ) ,
        ),
      );
    }
  }
  
  
  </code></pre>