sakibguy / worked-issues

arget medi a[rpescriptionmedicie] &ssets[dr] (reeeverse._ax:p)
2 stars 0 forks source link

[ORG] SG-MYALICE: Null check operator used on a null value #48

Closed sakibguy closed 1 year ago

sakibguy commented 2 years ago

Problem

err on: imageUrl: _list.elementAt(index).products!.elementAt(indexs).productImages!.elementAt(0)

CachedNetworkImage(
                                                                          imageBuilder: (context, imageProvider) => Container(
                                                                            height: 52,
                                                                            width: 52,
                                                                            decoration: BoxDecoration(
                                                                              borderRadius: BorderRadius.all(Radius.circular(3)),
                                                                              image: DecorationImage(image: imageProvider, fit: BoxFit.fill),
                                                                            ),
                                                                          ),
                                                                          //imageUrl: _list.elementAt(index).products!.elementAt(indexs).productImages!.elementAt(0),
                                                                          errorWidget: (context, url, error) => Text(error.toString()),
                                                                          height: 60,
                                                                        ),

1

sakibguy commented 2 years ago

Fixed

at ecomHistory.dart imageUrl: "",

https://github.com/alice-labs/myalice_app/commit/5bc876323e85d2f7084c7f9818d24e5c0d2910eb

sakibguy commented 2 years ago

Issue not fixed yet, img render failed

1

sakibguy commented 2 years ago

https://pub.dev/packages/cached_network_image

sakibguy commented 2 years ago

https://stage-api.myalice.ai/api/ecommerce/projects/375/search-orders/1269/get-products

Screenshot (44)

sakibguy commented 2 years ago

Product image load faile d. Screenshot (45)

sakibguy commented 2 years ago

Order history endpoint res data structure vs ecom endpoint res data structure not same.

ecommerce/customers/$customerID/order-list"

response data structure, product_images key exists inside products[]

---debug1--- crm/customer{"success":true,"dataSource":[{"id":"62650c43d7a600dcbd32f019","created_at":"1650789443","modified_at":"1650789443","cancelled_at":null,"ecommerce_type":"woocommerce","ecommerce_store_url":"https://wc.myalice.ai/","ecommerce_account_id":"3","ecommerce_order_id":"1073","products":[{"product_id":"535","product_name":"Best Dad Ever Men Letters T Shirt Father's Day Cotton Short Sleeve Tee Gifts","product_link":"https://wc.myalice.ai/product/best-dad-ever-men-letters-t-shirt-fathers-day-cotton-short-sleeve-tee-gifts/","product_images":["https://wc.myalice.ai/wp-content/uploads/2021/09/orange-1.jpg"],

Snap

Screenshot (46)

ecom search: https://stage.myalice.ai/projects/375/chat

1 2

sakibguy commented 1 year ago

Fix only when ecom work started. So, now close.