'I have a listTile as a child of a container in flutter, I want to remove this space, and also enlarge the Image.network

I am trying to reduce the size of the container, and also enlarge the photo

Ui of the problem source code



Solution 1:[1]

You can use the visualDensity property to reduce the space.

The visualDensity value can be changed from -4.0 to 4.0.

Example:

ListTile(
    visualDensity: VisualDensity(horizontal: 0, vertical: -4),
    title: Text("xyz")
);

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 nagendra nag