Use VisualDensity to make Flutter widgets automatically adapt their spacing and size based on the input method — touch vs pointer devices.