Нашел решение, не связанное с Flex, потому что Flex не работает в старых браузерах. Пример:
.container {
display:block;
position:relative;
height:150px;
width:1024px;
margin:0 auto;
padding:0px;
border:0px;
background:#ececec;
margin-bottom:10px;
text-align:justify;
box-sizing:border-box;
white-space:nowrap;
font-size:0pt;
letter-spacing:-1em;
}
.cols {
display:inline-block;
position:relative;
width:32%;
height:100%;
margin:0 auto;
margin-right:2%;
border:0px;
background:lightgreen;
box-sizing:border-box;
padding:10px;
font-size:10pt;
letter-spacing:normal;
}
.cols:last-child {
margin-right:0;
}
ExpansionPanelList
использует цвет cardColor
из вашей темы. Вы можете указать его в свойстве MaterialApp
(theme
) или переопределить его в своем виджете:
Container(
color: Theme.of(context).primaryColor,
margin: EdgeInsets.only(left: 10.0, right: 10.0, top: 10.0),
child: Theme(
data: Theme.of(context).copyWith(cardColor: Colors.red),
child: ExpansionPanelList(
...
ExpandIcon
: github.com/flutter/flutter/issues/18992 – Kirill Shashov 13 July 2018 в 16:09