fix: analyzer fixes

This commit is contained in:
misha
2026-10-14 10:53:38 +03:00
parent dcd343e765
commit ef4df92f58
2 changed files with 4 additions and 2 deletions

View File

@@ -210,10 +210,11 @@ class _BlogPostScreenState extends State<BlogPostScreen> {
);
if (!context.mounted) return;
if (isSent)
if (isSent) {
context
.read<FeedCubit>()
.incrementCommentsState(widget.id);
}
context.read<CommentsCubit>().setReplyId(null);
setState(() {

View File

@@ -196,8 +196,9 @@ class _BottomNavigationBarWidgetState extends State<BottomNavigationBarWidget> {
if (indexFromRoute >= 0 &&
indexFromRoute != currentBottomNavBarIndex) {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted)
if (mounted) {
setState(() => currentBottomNavBarIndex = indexFromRoute);
}
});
}