This uses a PredictiveBackHandler and collects the flow of back events to manipulate the translation. I created separate openDrawer and closeDrawer functions to reuse the code in both toggleDrawerState and in the PredictiveBackHandler implementation.
This uses a PredictiveBackHandler and collects the flow of back events to manipulate the translation. I created separate openDrawer and closeDrawer functions to reuse the code in both toggleDrawerState and in the PredictiveBackHandler implementation.