Skip to content

Commit 1437677

Browse files
committed
Run IntelliJ IDEA Code Cleanup, revert some changes, and add some TODOs
1 parent 5a8aed5 commit 1437677

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

common/src/androidxCommonMain/kotlin/com/huanshankeji/compose/foundation/text/KeyboardOptions.androidxCommon.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import com.huanshankeji.compose.foundation.text.input.toPlatformValue
44
import androidx.compose.foundation.text.KeyboardOptions as PlatformKeyboardOptions
55

66
fun KeyboardOptions.toPlatformValue(): PlatformKeyboardOptions =
7+
// TODO deprecated
78
PlatformKeyboardOptions(
89
capitalization.toPlatformValue(),
910
autoCorrect ?: true,

common/src/commonMain/kotlin/com/huanshankeji/compose/foundation/layout/ext/InnerPadding.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import androidx.compose.ui.unit.dp
66
import com.huanshankeji.compose.foundation.background
77
import com.huanshankeji.compose.foundation.clickable
88
import com.huanshankeji.compose.foundation.layout.PaddingValues
9-
import com.huanshankeji.compose.foundation.layout.padding
109
import com.huanshankeji.compose.ui.Modifier
1110

1211
/**

common/src/commonMain/kotlin/com/huanshankeji/compose/foundation/layout/ext/OuterPadding.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import androidx.compose.ui.unit.dp
66
import com.huanshankeji.compose.foundation.background
77
import com.huanshankeji.compose.foundation.clickable
88
import com.huanshankeji.compose.foundation.layout.PaddingValues
9-
import com.huanshankeji.compose.foundation.layout.padding
109
import com.huanshankeji.compose.ui.Modifier
1110

1211
/**

material3/src/androidxCommonMain/kotlin/com/huanshankeji/compose/material3/ext/ExposedDropdownMenu.androidxCommon.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ actual fun ExposedDropdownMenuBox(
2323
@OptIn(ExperimentalMaterial3Api::class)
2424
actual class ExposedDropdownMenuBoxScope(val platformValue: androidx.compose.material3.ExposedDropdownMenuBoxScope) {
2525
actual fun Modifier.menuAnchor(): Modifier =
26-
platformModify { with(platformValue) { menuAnchor() } }
26+
platformModify { with(platformValue) { menuAnchor() } } // TODO add `type`
2727

2828
@Composable
2929
actual fun ExposedDropdownMenu(
@@ -48,6 +48,7 @@ actual fun ExposedDropdownMenuBoxScope.ExposedDropdownMenuBoxTextField(
4848
with(args) {
4949
@OptIn(ExperimentalMaterial3Api::class)
5050
TextField(
51+
// TODO add `type`
5152
modifier = with(platformValue) { PlatformModifier.menuAnchor(/*MenuAnchorType.PrimaryNotEditable*/) }, // `MenuAnchorType` seems to be not supported in the latest version of Compose Multiplatform yet
5253
value = value,
5354
onValueChange = onValueChange,

0 commit comments

Comments
 (0)