diff --git a/lib/features/blog_post/presentation/pages/blog_post_screen.dart b/lib/features/blog_post/presentation/pages/blog_post_screen.dart index 3578edb6..f79d9ef2 100644 --- a/lib/features/blog_post/presentation/pages/blog_post_screen.dart +++ b/lib/features/blog_post/presentation/pages/blog_post_screen.dart @@ -210,10 +210,11 @@ class _BlogPostScreenState extends State { ); if (!context.mounted) return; - if (isSent) + if (isSent) { context .read() .incrementCommentsState(widget.id); + } context.read().setReplyId(null); setState(() { diff --git a/lib/features/bottom_navigation_bar/presentation/widgets/bottom_navigation_bar_widget.dart b/lib/features/bottom_navigation_bar/presentation/widgets/bottom_navigation_bar_widget.dart index c1f54a24..c3317d8c 100644 --- a/lib/features/bottom_navigation_bar/presentation/widgets/bottom_navigation_bar_widget.dart +++ b/lib/features/bottom_navigation_bar/presentation/widgets/bottom_navigation_bar_widget.dart @@ -196,8 +196,9 @@ class _BottomNavigationBarWidgetState extends State { if (indexFromRoute >= 0 && indexFromRoute != currentBottomNavBarIndex) { WidgetsBinding.instance.addPostFrameCallback((_) { - if (mounted) + if (mounted) { setState(() => currentBottomNavBarIndex = indexFromRoute); + } }); }