Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

GC 在某个情况下会突然很高 #438

Open
moonsunsong opened this issue Aug 18, 2020 · 0 comments
Open

GC 在某个情况下会突然很高 #438

moonsunsong opened this issue Aug 18, 2020 · 0 comments

Comments

@moonsunsong
Copy link

`
public override Widget build(BuildContext context)
{
List list = new List();
for (int i = 0; i < 36; i++)
{
list.Add(
new ExpansionTile(
title: new Text(data: i+"")
)
);
}

        return new Container(
            child: new Container(
                child:new ListView(
                    children: new List<Widget>()
                    {
                        new Container(
                            child: new Column(
                                children: list
                            )
                        )
                    }
                )
            )
        );
    }

`
ExpansionTile的个数在子列表中超过35个(可能不同电脑个数会不一样),GC突然就会很高,但是如果ExpansionTile在第一层列表的话就没有这个问题,unity版本是2019 4.5f1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant