Change from `StateHandler<NewStatisticState>`'s `state` to use `context.watch<NewStatisticState>()` instead of `context.read<NewStatisticState>()` in `_NewStatisticState

This commit is contained in:
MohammadTaha Basiri 2024-04-18 10:46:51 +03:30
parent b0c215acd3
commit bbcea4c04d
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class _NewStatisticState extends State<NewStatistic> {
StateHandler<NewStatisticState>(
enableEmptyState: false,
onRetry: context.read<NewStatisticState>().init,
state: context.read<NewStatisticState>(),
state: context.watch<NewStatisticState>(),
placeholder: Padding(
padding: const EdgeInsets.only(top: 48.0),
child: Column(