Change from `StateHandler<NewStatisticState>`'s `state` to use `context.watch<NewStatisticState>()` instead of `context.read<NewStatisticState>()` in `_NewStatisticState
This commit is contained in:
parent
b0c215acd3
commit
bbcea4c04d
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue