如何更改我的ListTile.
child: ListTile(
title: Center(
child: Text(infoBank[PicNumber].title),
),
textColor: Colors.white,
),
),
),
),
),
),
child: Container(
margin: EdgeInsets.fromLTRB(10, 20, 10, 20),
decoration: BoxDecoration(
border: Border.all(
width: 2,
color: Colors.grey.shade700,
),
),
height: 350,
width: 350,
child: ListTile(
leading: infoBank[PicNumber].image,
),
),

uj5u.com熱心網友回復:
要更改文本大小,請使用style屬性
Text(
infoBank[PicNumber].title,
style: TextStyle(fontSize: font_size_value),
),
Container要更改影像大小,請使用和使用height和width屬性包裝它
Container(
height: height_value,
width: width_value,
child: infoBank[PicNumber].image,
),
uj5u.com熱心網友回復:
對于文本使用,文本樣式和您可以使用 FontWeight 和其他屬性找到字體大小,要增加影像的大小,請將其放入具有一定高度和寬度的容器中。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/447450.html
