Flutter扩展瓷砖标题填充

时间:2020-11-10 05:48:07

标签: flutter dart padding

我们如何在Flutter ExpansionTile中删除开头和标题之间的空间? enter image description here

3 个答案:

答案 0 :(得分:2)

请尝试以下摘录

CTFilterColumn

如果您要删除视图外侧的填充 将ExpantionTile瓦片填充设置为零

ExpansionTile(title: Row(children: [
  // Icon View,
  // SizedBox of desired width,
  // Text View
  ]),
  children:  ... ,)

答案 1 :(得分:0)

尝试用title包裹Alignment,如下所示

title: Align(
      child: Text(
          "Your text over here"
      ),
      //You may change value from -1.5 to anything which works better for you
      alignment: Alignment(-1.5, 0),
    ),
    dense: true,
  )

答案 2 :(得分:-1)

ListTile(

  title: Row(

  children: <Widget>[

   Icon(Icons.android),

       Text("Title")
],),)