Skip to content

Commit

Permalink
Merge pull request #3 from kriticalflare/flutter-update
Browse files Browse the repository at this point in the history
Flutter update
  • Loading branch information
kriticalflare authored Jul 28, 2021
2 parents 20e6664 + ee572ae commit 14cb346
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 370 deletions.
256 changes: 86 additions & 170 deletions lib/database/favourites_db.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/services/network_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class NetworkHelper{
// print('EncodedQuery : $encodedQuery');
String url = '$apiUrl$requestType=$encodedQuery&limit=$limit&page=$page&sort=$sortType';
// print(url);
http.Response response = await http.get(url);
http.Response response = await http.get(Uri.parse(url));
if(response.statusCode == 200){
var data = response.body.toString();
// print(data);
Expand All @@ -30,7 +30,7 @@ class NetworkHelper{
Future<dynamic> getGBooksData(String query) async {
String encodedQuery = Uri.encodeComponent(query);
String url = 'https://www.googleapis.com/books/v1/volumes?q=$encodedQuery';
http.Response response = await http.get(url);
http.Response response = await http.get(Uri.parse(url));
if(response.statusCode == 200){
var data = response.body.toString();
var decodedData = jsonDecode(data);
Expand Down
Loading

0 comments on commit 14cb346

Please sign in to comment.