feat:fix complicatedDemo

This commit is contained in:
pengfei.zhou 2020-06-22 15:11:36 +08:00 committed by osborn
parent cb3dfcbec8
commit 90a3691362

View File

@ -6,7 +6,8 @@ class MyDemo extends Panel {
build(root: Group) {
let refreshed: Refreshable
let headerImage: Image
stack([
stack(
[
refreshed = refreshable({
onRefresh: () => {
refreshed.setRefreshing(context, false)
@ -53,6 +54,10 @@ class MyDemo extends Panel {
height: 200,
scaleType: ScaleType.ScaleAspectFill,
}),
]).in(root)
],
{
layoutConfig: layoutConfig().most()
}
).in(root)
}
}