Disable onTapped on TabBar on Flutter
I have a more elegant solution:
TabBar(
onTap: (index){
_controller.index = _controller.previousIndex;
},
Just wrap the TabBar in an IgnorePointer.
I have a more elegant solution:
TabBar(
onTap: (index){
_controller.index = _controller.previousIndex;
},
Just wrap the TabBar in an IgnorePointer.