My PersistentTabView with 5 buttons has a PersistentTabController, 3 of the buttons change screens (defined in the screens: attribute), the other 2 raise modals. For the modal buttons, I can insert a haptic feedback instruction within the onPressed() block. However, the buttons which change the active screen (via the TabController) do not use onPressed()
Is there a way to insert haptic feedback when these buttons are pressed?
My PersistentTabView with 5 buttons has a PersistentTabController, 3 of the buttons change screens (defined in the
screens:
attribute), the other 2 raise modals. For the modal buttons, I can insert a haptic feedback instruction within theonPressed()
block. However, the buttons which change the active screen (via the TabController) do not useonPressed()
Is there a way to insert haptic feedback when these buttons are pressed?