You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@himanshusharma89 Do I only have to create a method to fetch the products using http ? Or do I have to use it also ? Because, there is no image Url and no height values in the json data.
@SapinderSingh Fetch the data, create a factory constructor in the products model, pass the data, and later use it. You can use a check for an image and use an asset if it is empty or the size isn't greater than 1.
Discussion 馃棧
Currently, we are fetching the hard-coded products, now you need to fetch the products using a REST API.
Context
Use this API: https://himanshusharma89-api.herokuapp.com/api/relic_bazaar/products
The text was updated successfully, but these errors were encountered: