Skip to content

Commit a905006

Browse files
committed
library: Refactor Scaffold from androidx-main
1 parent e122dbc commit a905006

File tree

6 files changed

+164
-148
lines changed

6 files changed

+164
-148
lines changed

docs/components/surface.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ Surface(
4747

4848
### Additional Properties for Clickable Surface
4949

50-
| Property Name | Type | Description | Default Value | Required |
51-
| ------------- | ---------- | -------------------------------- | ------------- | -------- |
52-
| onClick | () -> Unit | Callback triggered on click | - | Yes |
53-
| enabled | Boolean | Whether the Surface is clickable | true | No |
50+
| Property Name | Type | Description | Default Value | Required |
51+
| ----------------- | ------------------------- | ------------------------------------ | ------------- | -------- |
52+
| onClick | () -> Unit | Callback triggered on click | - | Yes |
53+
| enabled | Boolean | Whether the component is clickable | true | No |
54+
| interactionSource | MutableInteractionSource? | Interaction source for the component | null | No |
5455

5556
## Advanced Usage
5657

docs/zh_CN/components/surface.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ Surface(
4747

4848
### 可点击 Surface 额外属性
4949

50-
| 属性名 | 类型 | 说明 | 默认值 | 是否必须 |
51-
| ------- | ---------- | ------------------------- | ------ | -------- |
52-
| onClick | () -> Unit | 点击 Surface 时触发的回调 | - ||
53-
| enabled | Boolean | Surface 是否可点击 | true ||
50+
| 属性名 | 类型 | 说明 | 默认值 | 是否必须 |
51+
| ----------------- | ------------------------- | -------------------- | ------ | -------- |
52+
| onClick | () -> Unit | 点击组件时触发的回调 | - ||
53+
| enabled | Boolean | 组件是否可点击 | true ||
54+
| interactionSource | MutableInteractionSource? | 组件的交互源 | null ||
5455

5556
## 进阶用法
5657

example/src/commonMain/kotlin/UITest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ data class UIState(
8989
val floatingToolbarOrientation: Int = 1,
9090
val showFloatingActionButton: Boolean = false,
9191
val floatingActionButtonPosition: Int = 2,
92-
val enablePageUserScroll: Boolean = false,
92+
val enablePageUserScroll: Boolean = true,
9393
val scrollEndHaptic: Boolean = true
9494
)
9595

@@ -220,7 +220,6 @@ fun UITest(
220220
exit = fadeOut()
221221
) {
222222
FloatingToolbar(
223-
color = Color.Transparent,
224223
cornerRadius = 20.dp
225224
) {
226225
AnimatedContent(

iosApp/iosApp/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundleShortVersionString</key>
1818
<string>1.0.4</string>
1919
<key>CFBundleVersion</key>
20-
<string>487</string>
20+
<string>488</string>
2121
<key>LSRequiresIPhoneOS</key>
2222
<true/>
2323
<key>CADisableMinimumFrameDurationOnPhone</key>

0 commit comments

Comments
 (0)