Skip to content

Issue: Changing one tab triggers the build method of other tabs.Β #15

@tuanbs

Description

@tuanbs

I notice that changing 1 tab will trigger the build method of other tabs which is very bad for performance I think. For example, In ColorsListPage class, I added the log line in the build method, and when I change the tab I can see the build method of other tabs are called:

@override
  Widget build(BuildContext context) {
    log('Rebuild: $title.');
    return Scaffold(
        appBar: AppBar(
          title: Text(
            title,
          ),
          backgroundColor: color,
        ),
        body: Container(
          color: Colors.white,
          child: _buildList(),
        ));
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions