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