feat: syn product

This commit is contained in:
efrilm
2025-08-03 00:35:00 +07:00
parent 576f687d21
commit 7678b4791d
28 changed files with 1922 additions and 948 deletions
@@ -20,10 +20,10 @@ class AddProductBloc extends Bloc<AddProductEvent, AddProductState> {
emit(const _Loading());
final requestData = ProductRequestModel(
name: event.product.name!,
price: int.parse(event.product.price!),
stock: event.product.stock!,
categoryId: event.product.categoryId!,
isBestSeller: event.product.isFavorite!,
price: event.product.price!,
stock: 0,
categoryId: 0,
isBestSeller: 0,
image: event.image,
);
log("requestData: ${requestData.toString()}");