首页 > 解决方案 > 由于列表视图,用户无法滚动更多

问题描述

我正在制作一个颤振应用程序,我有下一个问题。用户需要添加他们打开/关闭的时间。但是当我想滚动更多时,由于滚动视图不能保持完整,所以我无法保持完整。我将发布视频以进行更好的处理-https: //imgur.com/a/KyQYRx0

 Text(
                        'End Time: ',
                        style: TextStyle(
                            fontWeight: FontWeight.w600, fontSize: 16.0),
                      ),
                      DirectSelect(
                          itemExtent: 50.0,
                          selectedIndex: selectedIndex1,
                          backgroundColor: Colors.white30,
                          child: MySelectionItem(
                            isForList: false,
                            title: elements3[selectedIndex3],
                          ),
                          onSelectedItemChanged: (index) {
                            setState(() {
                              selectedIndex3 = index;
                            });
                          },
                          items: _buildItems3()),
                    ],

标签: flutterscrollview

解决方案


你试过改变背景颜色吗?使其不透明并尝试一次


推荐阅读