feat: syn product
This commit is contained in:
@@ -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()}");
|
||||
|
||||
Reference in New Issue
Block a user