我想在BottomNavigationBar的元素被点击后的一段时间内禁用与它的交互。我尝试使用AbsorbPointer来做到这一点:int_bottomBarIndex=0;bool_isPageTwo=false;WidgetcallPage(intindex){switch(index){case0:_isPageTwo=false;returnPage1();case1:_isPageTwo=true;returnPage2();case2:_isPageTwo=false;returnPage3();default:_isPageTwo=false;returnPage1(
我想在BottomNavigationBar的元素被点击后的一段时间内禁用与它的交互。我尝试使用AbsorbPointer来做到这一点:int_bottomBarIndex=0;bool_isPageTwo=false;WidgetcallPage(intindex){switch(index){case0:_isPageTwo=false;returnPage1();case1:_isPageTwo=true;returnPage2();case2:_isPageTwo=false;returnPage3();default:_isPageTwo=false;returnPage1(