@@ -85,26 +85,25 @@ import top.yukonga.miuix.kmp.utils.SmoothRoundedCornerShape
8585import top.yukonga.miuix.kmp.utils.getWindowSize
8686import kotlin.math.roundToInt
8787
88-
8988/* *
90- * A [SuperSpinner] component with Miuix style.
89+ * A spinner component with Miuix style.
9190 *
92- * @param title the title of the [SuperSpinner].
93- * @param items the list of [SpinnerEntry] to be shown in the [SuperSpinner].
94- * @param selectedIndex the index of the selected item in the [SuperSpinner].
95- * @param modifier the [Modifier] to be applied to the [SuperSpinner].
96- * @param popupModifier the [Modifier] to be applied to the popup of the [SuperSpinner].
97- * @param titleColor the color of the title of the [SuperSpinner].
98- * @param summary the summary of the [SuperSpinner].
99- * @param summaryColor the color of the summary of the [SuperSpinner].
100- * @param mode the mode of the [SuperSpinner].
101- * @param horizontalPadding the horizontal padding of the [SuperSpinner].
102- * @param leftAction the action to be shown at the left side of the [SuperSpinner].
103- * @param insideMargin the [PaddingValues] to be applied inside the [SuperSpinner].
104- * @param defaultWindowInsetsPadding whether to apply the default window insets padding to the [SuperSpinner].
105- * @param enabled whether the [SuperSpinner] is enabled.
106- * @param showValue whether to show the value of the [SuperSpinner].
107- * @param onSelectedIndexChange the callback to be invoked when the selected index of the [SuperSpinner] is changed.
91+ * @param title The title of the [SuperSpinner].
92+ * @param items The list of [SpinnerEntry] to be shown in the [SuperSpinner].
93+ * @param selectedIndex The index of the selected item in the [SuperSpinner].
94+ * @param modifier The [Modifier] to be applied to the [SuperSpinner].
95+ * @param popupModifier The [Modifier] to be applied to the popup of the [SuperSpinner].
96+ * @param titleColor The color of the title of the [SuperSpinner].
97+ * @param summary The summary of the [SuperSpinner].
98+ * @param summaryColor The color of the summary of the [SuperSpinner].
99+ * @param mode The mode of the [SuperSpinner].
100+ * @param horizontalPadding The horizontal padding of the [SuperSpinner].
101+ * @param leftAction The action to be shown at the left side of the [SuperSpinner].
102+ * @param insideMargin The [PaddingValues] to be applied inside the [SuperSpinner].
103+ * @param defaultWindowInsetsPadding Whether to apply the default window insets padding to the [SuperSpinner].
104+ * @param enabled Whether the [SuperSpinner] is enabled.
105+ * @param showValue Whether to show the value of the [SuperSpinner].
106+ * @param onSelectedIndexChange The callback to be invoked when the selected index of the [SuperSpinner] is changed.
108107 */
109108@Composable
110109fun SuperSpinner (
@@ -224,8 +223,8 @@ fun SuperSpinner(
224223 )
225224 }
226225 }
227- ) { _,_ ->
228- layout(0 ,0 ) {}
226+ ) { _, _ ->
227+ layout(0 , 0 ) {}
229228 }
230229 }
231230 leftAction?.invoke()
@@ -314,11 +313,13 @@ fun SuperSpinner(
314313 )
315314 }
316315 .layout { measurable, constraints ->
317- val placeable = measurable.measure(constraints.copy(
318- minWidth = 200 .dp.roundToPx(),
319- minHeight = 50 .dp.roundToPx(),
320- maxHeight = windowHeightPx - statusBarPx - navigationBarPx - captionBarPx
321- ))
316+ val placeable = measurable.measure(
317+ constraints.copy(
318+ minWidth = 200 .dp.roundToPx(),
319+ minHeight = 50 .dp.roundToPx(),
320+ maxHeight = windowHeightPx - statusBarPx - navigationBarPx - captionBarPx
321+ )
322+ )
322323 layout(constraints.maxWidth, constraints.maxHeight) {
323324 val xCoordinate = calculateOffsetXPx(
324325 componentInnerOffsetXPx,
0 commit comments