Visual density

Different input devices offer various levels of precision,
which necessitate differently sized hit areas.
Flutter’s VisualDensity class makes it easy to adjust the
density of your views across the entire application,
for example, by making a button larger
(and therefore easier to tap) on a touch device.

When you change the VisualDensity for your MaterialApp,
MaterialComponents that support it animate their densities
to match. By default, both horizontal and vertical densities
are set to 0.0, but you can set the densities to any negative
or positive value that you want. By switching between different
densities, you can easily adjust your UI:

To set a custom visual density, inject the density into
your MaterialApp theme:

To use VisualDensity inside your own views,
you can look it up: