扑扑的PageView.builder

时间:2020-06-22 12:41:10

标签: flutter flutter-pageview

如何重建我的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)),

0 个答案:

没有答案