Open hafidprintsoft opened 7 months ago
I am experiencing an issue where the reverse animation does not activate when calling _advancedDrawerController.hideDrawer(). The drawer closes instantly without the expected transition effect.
I have resolved the animation timing issue when closing the drawer by using WidgetsBinding.instance.addPostFrameCallback. This ensures that the drawer's hide operation (_advancedDrawerController.hideDrawer()) is scheduled to run after the widget tree has been rebuilt.
ListTile(
leading: Icon(Icons.dashboard),
title: Text('Dashboard'),
onTap: () async {
_updateTabSelection(0, 'Dashboard');
WidgetsBinding.instance.addPostFrameCallback((_) {
_advancedDrawerController.hideDrawer();
});
},
)
Animation not active when hide drawer from item menu different when open the drawer menu