How to remove padding in an IconButton ? I want items in my column have the same start padding

Column(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp)
) {
IconButton(onClick = { }) {
Icon(asset = Icons.Filled.Search)
}
Text("Some text")
}
The space is due to accessibility touch targets and a default size of
48.dp.Starting with
1.2.0the best best way to change the default behaviour and remove the extra space is disabling theLocalMinimumInteractiveComponentEnforcementand applying asizemodifier:Pay attention because in this way it is possible that if the component is placed near the edge of a layout / near to another component without any padding, there will not be enough space for an accessible touch target.
With
1.0.0theIconButtonapplies a default size with the internal modifier:IconButtonSizeModifier = Modifier.size(48.dp).You can modify it using something like:
It is important the use of
.thento apply thesizein the right sequence.