feat: customer page

This commit is contained in:
efrilm
2025-08-18 00:30:17 +07:00
parent d22ffdd6d0
commit 51289d7829
21 changed files with 3278 additions and 308 deletions
@@ -0,0 +1,17 @@
part of 'customer_loader_bloc.dart';
@freezed
class CustomerLoaderState with _$CustomerLoaderState {
const factory CustomerLoaderState({
required List<Customer> customers,
required Option<CustomerFailure> failureOptionCustomer,
String? categoryId,
String? search,
@Default(false) bool isFetching,
@Default(false) bool hasReachedMax,
@Default(1) int page,
}) = _CustomerLoaderState;
factory CustomerLoaderState.initial() =>
CustomerLoaderState(customers: [], failureOptionCustomer: none());
}