Commit e874cca 1 parent fd7c238 commit e874cca Copy full SHA for e874cca
File tree 2 files changed +11
-8
lines changed
app/src/main/java/com/gzq/wanandroid
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,7 @@ fun NavGraphBuilder.testClickPage(
43
43
navController : NavHostController
44
44
) {
45
45
composable(Router .TestClickPage .route) {
46
- TestClickPage (){
47
-
48
- }
46
+ ClickEventTest ()
49
47
}
50
48
}
51
49
@@ -94,12 +92,16 @@ fun ClickEventTest() {
94
92
Modifier
95
93
.fillMaxSize()
96
94
.offset { IntOffset (0 , offset.roundToInt()) }
97
- .draggable(rememberDraggableState(onDelta = { offset + = it}), Orientation .Vertical )
95
+ .draggable(rememberDraggableState(onDelta = { offset + = it }), Orientation .Vertical )
98
96
) {
99
- repeat(20 ){ i->
100
- key(i) {
101
- Text (text = " Item $i " , modifier = Modifier .padding(20 .dp))
102
- }
97
+ repeat(20 ) { i ->
98
+ Box (
99
+ modifier = Modifier
100
+ .padding(top = 10 .dp)
101
+ .fillMaxWidth()
102
+ .height(100 .dp)
103
+ .background(Color .Red )
104
+ )
103
105
}
104
106
}
105
107
}
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ fun CustomWebView(
169
169
lifecycleOwner.lifecycle.removeObserver(observer)
170
170
// 在退出Compose页面的时候释放webview
171
171
agentWeb?.webLifeCycle!! .onDestroy()
172
+ agentWeb = null
172
173
}
173
174
}
174
175
You can’t perform that action at this time.
0 commit comments