使用BottomNavigationBar时禁用滑动手势 [英] Disable swipe gesture when using BottomNavigationBar
本文介绍了使用BottomNavigationBar时禁用滑动手势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何在与脚手架相连的BottomNavigationBar上禁用滑动?
How do we disable swipe on BottomNavigationBar attached to a scaffold?
我在官方文档中找不到方法。
I could not find a way in the official docs to do so.
推荐答案
知道了:
只需使用
physics: const NeverScrollableScrollPhysics()
可滚动的小部件!
这篇关于使用BottomNavigationBar时禁用滑动手势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文