File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
docs/demo/src/commonMain/kotlin
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import androidx.compose.ui.text.font.FontWeight
2020import androidx.compose.ui.unit.dp
2121import androidx.compose.ui.unit.sp
2222import top.yukonga.miuix.kmp.basic.Card
23+ import top.yukonga.miuix.kmp.basic.CardDefaults
2324import top.yukonga.miuix.kmp.basic.Text
2425import top.yukonga.miuix.kmp.theme.MiuixTheme
2526import top.yukonga.miuix.kmp.utils.PressFeedbackType
@@ -44,7 +45,9 @@ fun CardDemo() {
4445 modifier = Modifier
4546 .fillMaxWidth()
4647 .padding(horizontal = 12 .dp),
47- color = MiuixTheme .colorScheme.primaryVariant,
48+ colors = CardDefaults .defaultColors(
49+ color = MiuixTheme .colorScheme.primaryVariant
50+ ),
4851 insideMargin = PaddingValues (16 .dp),
4952 ) {
5053 Text (
Original file line number Diff line number Diff line change 1717 <key >CFBundleShortVersionString </key >
1818 <string >1.0.4 </string >
1919 <key >CFBundleVersion </key >
20- <string >493 </string >
20+ <string >494 </string >
2121 <key >LSRequiresIPhoneOS </key >
2222 <true />
2323 <key >CADisableMinimumFrameDurationOnPhone </key >
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ private fun BasicCard(
155155 modifier : Modifier = Modifier ,
156156 colors : CardColors = CardDefaults .defaultColors(),
157157 cornerRadius : Dp = CardDefaults .CornerRadius ,
158- content : @Composable ColumnScope . () -> Unit ,
158+ content : @Composable () -> Unit ,
159159) {
160160 val shape = remember(cornerRadius) { SmoothRoundedCornerShape (cornerRadius) }
161161
@@ -164,9 +164,8 @@ private fun BasicCard(
164164 color = colors.color,
165165 shape = shape,
166166 contentColor = colors.contentColor,
167- ) {
168- Column (content = content)
169- }
167+ content = content
168+ )
170169}
171170
172171object CardDefaults {
You can’t perform that action at this time.
0 commit comments