Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ library.namespace=com.mudita.mmd
library.compileSdk=34
library.minSdk=23
library.targetSdk=34
library.version=1.0.1
library.version=1.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import androidx.compose.foundation.interaction.collectIsFocusedAsState
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.consumeWindowInsets
import androidx.compose.foundation.layout.exclude
Expand Down Expand Up @@ -396,6 +397,9 @@ object SearchBarDefaultsMMD {
* emitting [Interaction]s for this input field. You can use this to change the search bar's
* appearance or preview the search bar in different states. Note that if `null` is provided,
* interactions will still happen internally.
* @param textFieldContentPadding the padding applied between the internal elements of the input
* field (query text, placeholder, icons) and the edge of its container. Defaults to
* [TextFieldDefaults.contentPaddingWithoutLabel].
*/
@ExperimentalMaterial3Api
@Composable
Expand All @@ -412,6 +416,7 @@ object SearchBarDefaultsMMD {
trailingIcon: @Composable (() -> Unit)? = null,
colors: TextFieldColorsMMD = inputFieldColors(),
interactionSource: MutableInteractionSource? = null,
textFieldContentPadding: PaddingValues = TextFieldDefaults.contentPaddingWithoutLabel(),
) {
@Suppress("NAME_SHADOWING")
val interactionSource = interactionSource ?: remember { MutableInteractionSource() }
Expand Down Expand Up @@ -466,7 +471,7 @@ object SearchBarDefaultsMMD {
},
shape = inputFieldShape,
colors = colors,
contentPadding = TextFieldDefaults.contentPaddingWithoutLabel(),
contentPadding = textFieldContentPadding,
container = {},
)
},
Expand Down
Loading