如何解决当我滚动页面内容时,搜索栏和文本小部件后面
我的小部件结构如下
当 Main PageView 索引为 0 时,调用 Explore() 小部件,否则调用 Category() 小部件
Align(
alignment: Alignment.center,child: PageView.builder(
controller: _controller,onPageChanged: (val) {
setState(() {
currentIndex = val;
});
},itemCount: 2,itemBuilder: (context,index) {
return index == 0 ? Explore() : CategoryWrapper();
},),
Inside Explore() Widget 我有一个小部件树的截图
Widget tree of the explore widget
我的问题是每当我滚动浏览页面时,内容都隐藏在搜索栏中,任何人都可以帮我解决问题。
Screenshot of the page when it loads
Screenshot of the page when you scroll
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。