Skip to content

Instantly share code, notes, and snippets.

@rohan20
Last active August 7, 2018 08:19
Show Gist options
  • Select an option

  • Save rohan20/1ec2d687bc2cbb842f1097a2ecd65fac to your computer and use it in GitHub Desktop.

Select an option

Save rohan20/1ec2d687bc2cbb842f1097a2ecd65fac to your computer and use it in GitHub Desktop.
E-Commerce app using Flutter - Part 3: Remote data
var response = await http.get(
RemoteConfig.config["BASE_URL"] +
RemoteConfig.config["BASE_PRODUCTS_URL"] +
"&category=$categoryId&per_page=6&page=$pageIndex",
headers: {
"Authorization": RemoteConfig.config["AuthorizationToken"],
},
).catchError(
(error) {
return false;
},
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment