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>( StateHandler<NewStatisticState>(
enableEmptyState: false, enableEmptyState: false,
onRetry: context.read<NewStatisticState>().init, onRetry: context.read<NewStatisticState>().init,
state: context.read<NewStatisticState>(), state: context.watch<NewStatisticState>(),
placeholder: Padding( placeholder: Padding(
padding: const EdgeInsets.only(top: 48.0), padding: const EdgeInsets.only(top: 48.0),
child: Column( child: Column(