From bbcea4c04d6af4ae79c3ada0ff761289ff5c10b6 Mon Sep 17 00:00:00 2001 From: MohammadTaha Basiri Date: Thu, 18 Apr 2024 10:46:51 +0330 Subject: [PATCH] Change from `StateHandler`'s `state` to use `context.watch()` instead of `context.read()` in `_NewStatisticState --- lib/views/home/new_statistic/new_statistic.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/views/home/new_statistic/new_statistic.dart b/lib/views/home/new_statistic/new_statistic.dart index 3098f31..e9bb535 100644 --- a/lib/views/home/new_statistic/new_statistic.dart +++ b/lib/views/home/new_statistic/new_statistic.dart @@ -70,7 +70,7 @@ class _NewStatisticState extends State { StateHandler( enableEmptyState: false, onRetry: context.read().init, - state: context.read(), + state: context.watch(), placeholder: Padding( padding: const EdgeInsets.only(top: 48.0), child: Column(