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

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

Description

@moonsunsong

`
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions