Skip to content

Commit

Permalink
bug fix for filter (#193)
Browse files Browse the repository at this point in the history
* bug fix for filter

* removed un-used code
  • Loading branch information
naveen-egov authored Aug 2, 2023
1 parent f233e1f commit ec8a5c1
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:async';

import 'package:collection/collection.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
Expand All @@ -23,6 +25,7 @@ class InventoryReportBloc
}) : super(const InventoryReportEmptyState()) {
on(_handleLoadDataEvent);
on(_handleLoadStockReconciliationDataEvent);
on(_handleLoadingEvent);
}

Future<void> _handleLoadDataEvent(
Expand Down Expand Up @@ -88,6 +91,13 @@ class InventoryReportBloc
emit(InventoryReportStockState(stockData: groupedData));
}

Future<void> _handleLoadingEvent(
InventoryReportLoadingEvent event,
InventoryReportEmitter emit,
) async {
emit(const InventoryReportLoadingState());
}

Future<void> _handleLoadStockReconciliationDataEvent(
InventoryReportLoadStockReconciliationDataEvent event,
InventoryReportEmitter emit,
Expand Down Expand Up @@ -125,6 +135,8 @@ class InventoryReportEvent with _$InventoryReportEvent {
required String facilityId,
required String productVariantId,
}) = InventoryReportLoadStockReconciliationDataEvent;

const factory InventoryReportEvent.loading() = InventoryReportLoadingEvent;
}

@freezed
Expand Down
Loading

0 comments on commit ec8a5c1

Please sign in to comment.