Search code examples
flutterlistviewflutter-layouttext-size

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


Solution

  • For Text use, Text style and u can find Font size with FontWeight and other Properties, To increase the size of an image put it inside Container with a certain height and width.