Answer the question
In order to leave comments, you need to log in
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
I think so, there may still be something in the properties
TextButton(
style: TextButton.styleFrom(
padding: /// тут,
This is where the indents are edited
Padding(padding: EdgeInsets.fromLTRB(...),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question