Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

How to decrease the space between image and text?

$
0
0

I'm doing a login and sign up page using flutter. I wanted to put the logo in the welcome screen. However, the distance between the image and the text is too far. This is the code and the image distance between logo and text is too far

How can I decrease distance between the two? I tried to put padding below the container but it still doesnt work.

const Padding(padding: EdgeInsets.all(10),          child: Image(            image: AssetImage("assets/images/logo2.png"),            width: 180.0,            height: 250.0,            fit: BoxFit.contain,          ),// fix this freaking distance        ),          //The text in the middle          Flexible(            flex: 8,            child:Container(            padding: const EdgeInsets.only(top: 5.0),              child:Center(                child: RichText(                  textAlign: TextAlign.center,                  //Welcome Back Text                  text: const TextSpan(                    children:[                      TextSpan(                        text: "Welcome Back!",                        style: TextStyle(                          fontSize: 45.0,                          fontWeight: FontWeight.w600,                          color: Color(0xFF7F6F5E),                        ),                      ),                      //the text for enter personal deets                      TextSpan(                        text: "\nYou enter personal deets bro",                        style: TextStyle(                          fontSize: 20,                          fontWeight: FontWeight.w500,                          color: Color(0xFF7F6F5E),                        ),                      ),                    ],                  ),                ),              ),          ),          ),

Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>