0

如何重建我的 PageView.builder?当我改变_type财产时MyPage,我想重建它

child: PageView.builder(
            controller: _controller,
            itemCount: items.length,
            allowImplicitScrolling: true,
            reverse: false,
            onPageChanged: (int position) {
              item = items[position];
            },
            itemBuilder: (context, position) => MyPage(
                  item: items[position],
                  type: _type)),
4

0 回答 0