Last active
August 7, 2018 08:19
-
-
Save rohan20/1ec2d687bc2cbb842f1097a2ecd65fac to your computer and use it in GitHub Desktop.
E-Commerce app using Flutter - Part 3: Remote data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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