靠逼大全官方版:不止于“靠”,更是人生开挂的秘密武器
本文解决的问题是 viewpage嵌套假设有viewpage包含AA1A2B,期望从A2可以手动滑动到B(平滑跟手)。
我刚开始尝试用ai解决但效果十分的死板不灵活来回几次都不行搜索发现了下面的类尊重原创下面时原创的引用https://www.cnblogs.com/yongfengnice/p/
html把下面的类直接复制给aiai就可以处理了class PageViewScrollUtils { final PageController pageController; final TabController tabController; late Drag? _drag; PageViewScrollUtils(this.pageController, this.tabController); bool handleNotification(ScrollNotification notification) { if (notification is UserScrollNotification) { if (notification.direction ScrollDirection.reverse tabController.index tabController.length -
{ _drag pageController.position.drag(DragStartDetails(), () { _drag null; }); } } if (notification is OverscrollNotification) { if (notification.dragDetails ! null _drag ! null) { _drag?.update(notification.dragDetails!); } } if (notification is ScrollEndNotification) { if (notification.dragDetails ! null _drag ! null) { _drag?.end(notification.dragDetails!); } } return true; } }
91看片官方版下载-91看片官方版下载应用