O
O
oyshomusic2021-07-26 13:12:45
Dart
oyshomusic, 2021-07-26 13:12:45

How to make buttons closer?

It is necessary to reduce the distance between the buttons, I want to make them a little tighter to each other.

Expanded(
                      child: Align(
                        alignment: Alignment.bottomLeft,
                        child: Column(
                          mainAxisAlignment: MainAxisAlignment.end,
                          children: <Widget>[
                            Padding(padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
                              child: Row(
                                children: [
                                  TextButton(onPressed: () => launch('tel://111'),
                                      child: Row(
                                        children: [
                                          Icon(Icons.phone_iphone_outlined, color: Colors.white, size: 20),
                                          Padding(padding: EdgeInsets.only(left: 7.0),),
                                          Text('446-777',
                                              style: TextStyle(color: Colors.white,
                                                  fontSize: 16)),
                                        ],
                                      ),
                                  ),
                                ],
                              ),
                            ),
                            Row(
                              children: <Widget>[
                                Padding(padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
                                  child: Row(
                                    children: [
                                      TextButton(onPressed: () {
                                        openSite();
                                      },

                                        child: Row(
                                          children: [
                                            Icon(Icons.laptop_chromebook_outlined, color: Colors.white, size: 20),
                                            Padding(padding: EdgeInsets.only(left: 7.0),),
                                            Text('www.aaa.ru',
                                                style: TextStyle(color: Colors.white,
                                                    fontSize: 16)),
                                          ],
                                        ),
                                      ),
                                    ],
                                  ),
                                ),
                              ],
                            ),
                            Row(
                              children: <Widget>[
                                Padding(padding: EdgeInsets.fromLTRB(10, 0, 0, 15),
                                  child: Row(
                                    children: [
                                      TextButton(onPressed: () {
                                        openMaps();
                                      },
                                        child: Row(
                                          children: [
                                            Icon(Icons.location_on_outlined, color: Colors.white, size: 20,),
                                            Padding(padding: EdgeInsets.only(left: 7.0),),
                                            Text('г. Москва',
                                                style: TextStyle(color: Colors.white,
                                                    fontSize: 16)),
                                          ],
                                        ),
                                      ),
                                    ],
                                  ),
                                ),
                              ],
                            ),

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Neonoviiwolf, 2021-07-26
@Neonoviiwolf

I think so, there may still be something in the properties

TextButton(
     style: TextButton.styleFrom(
           padding: /// тут,

V
Vadim Popov, 2021-07-26
@vadimpopov94

This is where the indents are edited
Padding(padding: EdgeInsets.fromLTRB(...),

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question