From ef4df92f581c03d45d05c01151d538b4af4d6ee0 Mon Sep 17 00:00:00 2001 From: misha Date: Wed, 14 Oct 2026 10:53:38 +0300 Subject: [PATCH] fix: analyzer fixes --- .../blog_post/presentation/pages/blog_post_screen.dart | 3 ++- .../presentation/widgets/bottom_navigation_bar_widget.dart | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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); + } }); }