Ad

How To Change The Size Of The Text

How to change the text and image size of my 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,

                    ),
                  ),

How my app is no

Ad

Answer

To change text size use style property

Text(
    infoBank[PicNumber].title, 
    style: TextStyle(fontSize: font_size_value),
),

To change image size wrap it with Container and use height and width properties

Container(
    height: height_value,
    width: width_value,
    child: infoBank[PicNumber].image,
),
Ad
source: stackoverflow.com
Ad