So my UI is showing something like this
My code is as below.
// modal bottom sheet state
val modalBottomSheetState = rememberModalBottomSheetState(
skipPartiallyExpanded = true
)
//Custom Otp Field from Basic Text field.
CustomOtpField(
text = accessPin,
onTextChanged = {
if (it.isEmpty()) accessPin = it
it.lastOrNull()?.let { mChar ->
if (!(mChar == '.' || mChar == ' ')) {
if (it.length <= 4) {
accessPin = it
}
}
}
},
keyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.Number,
imeAction = ImeAction.Done
)
)
I need the gap to be omitted. Any help will be appreciated.
This issue is partially resolved in another library version, try to use a new version of material3 library:
Or update version of BOM: