feat(app): stabilize recommendation flow
This commit is contained in:
@@ -39,6 +39,17 @@ class _MainScreenState extends ConsumerState<MainScreen> {
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
void didUpdateWidget(covariant MainScreen oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
if (oldWidget.initialTab != widget.initialTab &&
|
||||
_selectedIndex != widget.initialTab) {
|
||||
setState(() {
|
||||
_selectedIndex = widget.initialTab;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
NotificationService.onNotificationTap = null;
|
||||
|
||||
Reference in New Issue
Block a user