GetMidleware not working on bottomNavigationBar - flutter - GetX

Solution 1:

BottomNavigationBar (also TabBar) doesn't change routes. It's essentially single page. Therefore route middlewares can't be used with them without complications. Instead, you can use the auth check on the respective controllers of the views of navigation bar items. A very good place is in the onReady method of the GetxControllers.