fix: range date

This commit is contained in:
efrilm 2025-08-18 17:07:15 +07:00
parent a61b19e45c
commit fb2309ddb3
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ class _FinancePageState extends State<FinancePage>
backgroundColor: AppColor.background,
body: BlocListener<ProfitLossLoaderBloc, ProfitLossLoaderState>(
listenWhen: (previous, current) =>
previous.dateFrom != current.dateFrom &&
previous.dateFrom != current.dateFrom ||
previous.dateTo != current.dateTo,
listener: (context, state) {
context.read<ProfitLossLoaderBloc>().add(

View File

@ -82,7 +82,7 @@ class _SalesPageState extends State<SalesPage> with TickerProviderStateMixin {
backgroundColor: AppColor.background,
body: BlocListener<SalesLoaderBloc, SalesLoaderState>(
listenWhen: (previous, current) =>
previous.dateFrom != current.dateFrom &&
previous.dateFrom != current.dateFrom ||
previous.dateTo != current.dateTo,
listener: (context, state) {
context.read<SalesLoaderBloc>().add(SalesLoaderEvent.fectched());